Interface CheckedContainer<E>

  • Type Parameters:
    E - the base type of elements in the container.
    All Known Implementing Classes:
    Code­List­Set, Identified­Object­Set, Measurement­Range, Number­Range, Range, Range­Set, Table­Column, Weak­Hash­Set

    public interface CheckedContainer<E>
    A container that ensures that all elements are assignable to a given base type. Checked containers are usually Collection, but not always.

    Constraint: if a class implements both Checked­Container and Collection, then the parameterized type shall be the same type. Example:

    class MyList<E> extends AbstractList<E> implements CheckedContainer<E> { ... }

    Defined in the sis-utility module

    • Method Detail

      • getElementType

        Class<E> getElementType()
        Returns the base type of all elements in this container.
        the element type.