E - type of enumerated elements.public final class LateBindingEnumerable<E> extends AbstractEnumerable<E>
Enumerable whose source of elements can be defined after
construction.Enumerable,
AbstractEnumerable| Constructor and Description |
|---|
LateBindingEnumerable() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Iterable<? extends E> source)
Binds the current
LateBindingEnumerable to the given
source. |
Optional<Iterable<E>> |
binding()
Gets the bound
Iterable source, if any. |
protected Enumerator<E> |
internalEnumerator()
Yields a new
Enumerator for the current Enumerable. |
protected boolean |
internalOnceOnly()
Gets whether the current instance may yield a
Enumerator
only once. |
enumerating, enumerator, onceOnlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, as, asEnumeration, asFiltered, asSpliterator, asStream, asTolerant, asTolerant, cached, cached, choiceOf, choiceOf, concat, concatOn, distinct, elementsEqual, empty, filter, flatMap, iterate, iterator, limit, limitWhile, map, map, of, of, of, of, of, of, ofLateBinding, ofLazyEnumeration, ofLazyIterable, ofLazyIterator, ofLazySpliterator, ofLazyStream, on, onceOnly, peek, prepend, prependOn, range, rangeClosed, rangeInt, rangeIntClosed, rangeLong, rangeLongClosed, repeat, repeatAll, repeatEach, reverse, skip, skipWhile, sorted, sorted, take, takeWhile, union, unionOn, zipAll, zipAny, zipBoth, zipLeft, zipRightforEach, spliteratorprotected boolean internalOnceOnly()
AbstractEnumerableEnumerator
only once.
This method is the internal counterpart of AbstractEnumerable.onceOnly().
internalOnceOnly in class AbstractEnumerable<E>AbstractEnumerable.enumerator() may be called
only once, false otherwise.protected Enumerator<E> internalEnumerator()
AbstractEnumerableEnumerator for the current Enumerable.
This method is the internal counterpart of AbstractEnumerable.enumerator().
internalEnumerator in class AbstractEnumerable<E>Enumerator instance.Enumerablepublic void bind(Iterable<? extends E> source)
LateBindingEnumerable to the given
source.source - Iterable to get the elements from.LateBindingEnumerableCopyright © 2016. All rights reserved.