Package org.apache.sis.util.collection
Interface CheckedContainer<E>
-
- Type Parameters:
E- the base type of elements in the container.
- All Known Implementing Classes:
CodeListSet,IdentifiedObjectSet,MeasurementRange,NumberRange,Range,RangeSet,TableColumn,WeakHashSet
public interface CheckedContainer<E>A container that ensures that all elements are assignable to a given base type. Checked containers are usuallyCollection, but not always.Constraint: if a class implements both
CheckedContainerandCollection, then the parameterized type shall be the same type. Example:class MyList<E> extends AbstractList<E> implements CheckedContainer<E> { ... }- Since:
- 0.3
Defined in the
sis-utilitymodule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<E>getElementType()Returns the base type of all elements in this container.
-