Interface CheckedCollection<E>

Type Parameters:
E - The type of elements in the collection.
All Superinterfaces:
Collection<E>, Iterable<E>
All Known Implementing Classes:
CanonicalSet, CheckedArrayList, CheckedHashSet, DerivedSet, UnmodifiableArrayList, WeakHashSet, XPathUtil.StepList

public interface CheckedCollection<E> extends Collection<E>
Collection that ensures that all elements are assignable to a given base type. The base type is usually specified at collection construction time.
Since:
2.4
Author:
Martin Desruisseaux
  • Method Details

    • getElementType

      Class<E> getElementType()
      Returns the element type.
      Returns:
      The element type.