|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractSet org.geotools.resources.LazySet
An immutable set built from an iterator, which will be filled only when needed. This
implementation do not check if all elements in the iterator are really
unique; we assume that it was already verified by ServiceRegistry
.
This set is constructed by FactoryFinder
.
Constructor Summary | |
LazySet(java.util.Iterator iterator)
Construct a set to be filled using the specified iterator. |
Method Summary | |
java.lang.Object |
get(int index)
Returns the element at the specified position in this set. |
boolean |
isEmpty()
Tests if this set has no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the elements contained in this set. |
int |
size()
Returns the number of elements in this set. |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, remove, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, remove, retainAll, toArray, toArray |
Constructor Detail |
public LazySet(java.util.Iterator iterator)
Method Detail |
public java.util.Iterator iterator()
public int size()
public boolean isEmpty()
public java.lang.Object get(int index)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |