| Constructor and Description |
|---|
ChainedListSequence(java.util.List<java.util.List<T>> lists) |
| Modifier and Type | Method and Description |
|---|---|
Sequence<T> |
append(java.lang.Iterable<T> iterable)
Append the elements of the given
Iterable to the end of this Sequence. |
Sequence<T> |
append(T... items)
Append the given elements to the end of this
Sequence. |
<U extends java.util.Collection<T>> |
collectInto(U collection)
Collect this
Sequence into the given Collection. |
long |
count() |
static <T> Sequence<T> |
empty()
Create an empty
Sequence with no items. |
static <T> Sequence<T> |
from(java.util.List<java.util.List<T>> lists) |
static <T> Sequence<T> |
from(java.util.List<T>... lists) |
java.util.Optional<T> |
get(long index) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
static <T> Sequence<T> |
of(T... items)
Create a
Sequence with one item. |
static <T> Sequence<T> |
of(T item)
Create a
Sequence with one item. |
void |
removeAll()
Remove all elements matched by this sequence using
Iterator.remove(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadjacentEntries, adjacentPairs, all, any, append, append, batch, batch, cache, cache, cache, chars, chars, charsFrom, collect, collect, collectInto, delimit, delimit, distinct, endingAt, endingAt, endingAtNull, entries, filter, filterBack, filterBack, filterForward, filterForward, first, flatten, flatten, from, from, from, from, from, generate, index, interleave, ints, ints, intsFrom, intsFromZero, join, join, last, limit, longs, longs, longsFrom, longsFromZero, map, mapBack, mapBack, mapForward, mapForward, max, min, none, once, once, pairs, partition, peek, peekBack, peekBack, peekForward, peekForward, prefix, range, range, range, recurse, recurse, reduce, reduce, repeat, repeat, reverse, second, shuffle, shuffle, skip, skipTail, sorted, sorted, split, split, startingAfter, startingAfter, startingFrom, startingFrom, step, stream, suffix, swap, third, toArray, toArray, toBiSequence, toChars, toCollection, toDoubles, toEntrySequence, toInts, toList, toList, toLongs, toMap, toMap, toMap, toMap, toSet, toSet, toSortedMap, toSortedMap, toSortedSet, until, until, untilNull, window, windowpublic ChainedListSequence(java.util.List<java.util.List<T>> lists)
public static <T> Sequence<T> empty()
SequenceSequence with no items.empty in interface Sequence<T>Sequence.of(Object),
Sequence.of(Object...),
Sequence.from(Iterable)public static <T> Sequence<T> of(T item)
SequenceSequence with one item.of in interface Sequence<T>Sequence.of(Object...),
Sequence.from(Iterable)public static <T> Sequence<T> of(T... items)
SequenceSequence with one item.of in interface Sequence<T>Sequence.of(Object...),
Sequence.from(Iterable)public static <T> Sequence<T> from(java.util.List<T>... lists)
public static <T> Sequence<T> from(java.util.List<java.util.List<T>> lists)
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public <U extends java.util.Collection<T>> U collectInto(U collection)
SequenceSequence into the given Collection.collectInto in interface Sequence<T>public long count()
public java.util.Optional<T> get(long index)
public Sequence<T> append(java.lang.Iterable<T> iterable)
SequenceIterable to the end of this Sequence.append in interface Sequence<T>Sequence.cache(Iterable)public Sequence<T> append(T... items)
SequenceSequence.public void removeAll()
SequenceIterator.remove().