|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
java.util.HashSet
java.util.LinkedHashSet
org.geotools.util.CheckedHashSet
Acts as a typed Set while we wait for Java 5.0.
| Constructor Summary | |
CheckedHashSet(java.lang.Class type)
Constructs a set of the specified type. |
|
| Method Summary | |
boolean |
add(java.lang.Object element)
Adds the specified element to this set if it is not already present. |
protected void |
ensureValidType(java.lang.Object element)
Checks the type of the specified object. |
| Methods inherited from class java.util.HashSet |
clear, clone, contains, isEmpty, iterator, remove, size |
| Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opengis.util.Cloneable |
clone |
| Methods inherited from interface java.util.Set |
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
public CheckedHashSet(java.lang.Class type)
type - The element type (should not be null).| Method Detail |
protected void ensureValidType(java.lang.Object element)
throws java.lang.IllegalArgumentException
element - the object to check, or .
java.lang.IllegalArgumentException - if the specified element is not of the expected type.public boolean add(java.lang.Object element)
add in interface java.util.Setelement - element to be added to this set.
java.lang.IllegalArgumentException - if the specified element is not of the expected type.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||