public final class LazySet<E> extends AbstractSet<E>
ServiceRegistry
. This set is
constructed by org.geotools.referencing.FactoryFinder
.Constructor and Description |
---|
LazySet(Iterator<? extends E> iterator)
Construct a set to be filled using the specified iterator.
|
LazySet(Stream<? extends E> stream)
Construct a set to be filled using the specified iterator.
|
Modifier and Type | Method and Description |
---|---|
E |
get(int index)
Returns the element at the specified position in this set.
|
boolean |
isEmpty()
Tests if this set has no elements.
|
Iterator<E> |
iterator()
Returns an iterator over the elements contained in this set.
|
int |
size()
Returns the number of elements in this set.
|
equals, hashCode, removeAll
add, addAll, clear, contains, containsAll, remove, retainAll, toArray, toArray, toString
add, addAll, clear, contains, containsAll, remove, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public LazySet(Iterator<? extends E> iterator)
public Iterator<E> iterator()
public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractCollection<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
isEmpty
in interface Set<E>
isEmpty
in class AbstractCollection<E>
public E get(int index)
Copyright © 1996–2019 Geotools. All rights reserved.