org.geotools.util
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, WeakHashSet

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
Module:
modules/library/metadata (gt-metadata.jar)

Method Summary
 Class<E> getElementType()
          Returns the element type.
 
Methods inherited from interface Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

getElementType

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

Returns:
The element type.


Copyright © 1996-2009 Geotools. All Rights Reserved.