Interface IndexableSource<T>
- Type Parameters:
T- the element type of the source
public interface IndexableSource<T>
Represents a source which can be accessed via a zero-based index synchronously,
without going through the usual
Streamer.next() calls to obtain the next item.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionelementAt(long index) Obtain an element from the given index.longlimit()Returns the limit of how many items can be obtained via [elementAt(long).
-
Method Details
-
elementAt
-
limit
long limit()Returns the limit of how many items can be obtained via [elementAt(long).- Returns:
- the index limit, exclusive
-