Iterator implementations.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| public static class | |
| public abstract static class | |
| public abstract static class | |
| pack-priv abstract static class | |
| pack-priv static class | |
| public static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Iterator | |
| public static <T> Iterator |
| Iterators | back to summary |
|---|---|
| public Iterators() | |
| empty | back to summary |
|---|---|
| public static <T> Iterator | |
| singleton | back to summary |
|---|---|
| public static <T> Iterator | |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract T | |
| public boolean | |
| public T |
| core | back to summary |
|---|---|
| private final Iterator<? extends U> core | |
| Adapter | back to summary |
|---|---|
| public Adapter(Iterator<? extends U> core) | |
| filter | back to summary |
|---|---|
| protected abstract T filter(U u) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public T |
| Array | back to summary |
|---|---|
| public Array(T[] items) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private T |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| protected abstract boolean | |
| public T |
| core | back to summary |
|---|---|
| private final Iterator<? extends T> core | |
| next | back to summary |
|---|---|
| private T next | |
| Filter | back to summary |
|---|---|
| protected Filter(Iterator<? extends T> core) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| matches | back to summary |
|---|---|
| protected abstract boolean matches(T value) Return true to retain the value. | |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration. | |
U->Iterator<T> function and then iterate all
the resulting T.
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private Iterator |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Iterator | |
| public boolean | |
| public T |
| core | back to summary |
|---|---|
| private final Iterator<? extends U> core | |
| current | back to summary |
|---|---|
| private Iterator<? extends T> current | |
| Map | back to summary |
|---|---|
| protected Map(Iterator<? extends U> core) | |
| apply | back to summary |
|---|---|
| protected abstract Iterator | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| ReadOnly | back to summary |
|---|---|
| pack-priv ReadOnly() | |
| remove | back to summary |
|---|---|
| public final void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |
Iterator that returns a single (or no) value.
| Modifier and Type | Field and Description |
|---|---|
| private T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public T |
| next | back to summary |
|---|---|
| private T next | |
| Singleton | back to summary |
|---|---|
| pack-priv Singleton(T next) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public T |
| first | back to summary |
|---|---|
| private final Iterator<? extends T> first | |
| second | back to summary |
|---|---|
| private final Iterator<? extends T> second | |
| Union | back to summary |
|---|---|
| public Union(Iterator<? extends T> first, Iterator<? extends T> second) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration. | |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | matches(T value)
Implements abstract com. Return true to retain the value. |
| values | back to summary |
|---|---|
| private Set<T> values | |
| Unique | back to summary |
|---|---|
| public Unique(Iterator<? extends T> core) | |
| matches | back to summary |
|---|---|
| protected boolean matches(T value) Implements abstract com. Doc from com. Return true to retain the value. | |