# Interface CheckedContainer<E>

Type Parameters:
  `E` - the base type of elements in the container.

All Known Implementing Classes:
  `CodeListSet, IdentifiedObjectSet, MatrixParameters, MeasurementRange, NumberRange, PointTree, 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 usually `Collection`, but not always.

## Constraint

If a class implements both `CheckedContainer` and `Collection`, then the parameterized type shall be the same type. Example:

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

Since:
  0.3

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static enum`
  `CheckedContainer​.Mutability`
  Mutability status of a container.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Class<? extends E>`
  `getElementType()`
  Returns the base type of all elements in this container.
  `CheckedContainer​.Mutability`
  `getMutability()`
  Returns whether this container is modifiable, unmodifiable or immutable.

- ## Method Details

  - ### getElementType

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

  - ### getMutability

    CheckedContainer.Mutability getMutability()
    Returns whether this container is modifiable, unmodifiable or immutable.
    Returns:
      the mutability status of this container.
    Since:
      1.6