T
- Scalar typepublic final class ItemAt<T> extends Object implements Scalar<T>
Iterator
or fallback value if iterator hasn't this position.
There is no thread-safety guarantee.
Scalar.NoNulls<T>
Constructor and Description |
---|
ItemAt(Iterator<T> iterator)
Ctor.
|
ItemAt(Iterator<T> iterator,
Func<Iterable<T>,T> fallback)
Ctor.
|
ItemAt(Iterator<T> iterator,
int position)
Ctor.
|
ItemAt(Iterator<T> iterator,
int position,
Func<Iterable<T>,T> fallback)
Ctor.
|
ItemAt(Iterator<T> iterator,
T fallback)
Ctor.
|
public ItemAt(Iterator<T> iterator, T fallback)
iterator
- Iteratorfallback
- Fallback valuepublic ItemAt(Iterator<T> iterator, Func<Iterable<T>,T> fallback)
iterator
- Iteratorfallback
- Fallback valuepublic ItemAt(Iterator<T> iterator, int position)
iterator
- Iteratorposition
- PositionCopyright © 2017 Cactoos. All rights reserved.