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