public interface BaseSeq<T> extends Iterable<T>, RandomAccess
Modifier and Type | Method and Description |
---|---|
T |
get(int index)
Return the value at the given
index . |
default Iterator<T> |
iterator() |
int |
length()
Return the length of this sequence.
|
default ListIterator<T> |
listIterator()
Returns a list iterator over the elements in this sequence (in proper
order).
|
default Spliterator<T> |
spliterator() |
default Stream<T> |
stream()
Returns a sequential Stream with this sequence as its source.
|
T get(int index)
index
.index
- index of the element to return.index
.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size()).int length()
default ListIterator<T> listIterator()
default Stream<T> stream()
default Spliterator<T> spliterator()
spliterator
in interface Iterable<T>
© 2007-2020 Franz Wilhelmstötter (2020-02-18 20:01)