|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.geotools.resources.LazySet<E>
public final class LazySet<E>
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 org.geotools.referencing.FactoryFinder
.
Constructor Summary | |
---|---|
LazySet(java.util.Iterator<? extends E> iterator)
Construct a set to be filled using the specified iterator. |
Method Summary | |
---|---|
E |
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<E> |
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<? extends E> iterator)
Method Detail |
---|
public java.util.Iterator<E> iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
iterator
in interface java.util.Set<E>
iterator
in class java.util.AbstractCollection<E>
public int size()
size
in interface java.util.Collection<E>
size
in interface java.util.Set<E>
size
in class java.util.AbstractCollection<E>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
isEmpty
in interface java.util.Set<E>
isEmpty
in class java.util.AbstractCollection<E>
public E get(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |