Uses of Interface
com.jongsoft.lang.collection.Sequence
-
Packages that use Sequence Package Description com.jongsoft.lang This package contains all interfaces used through out the functional library.com.jongsoft.lang.collection A purely functional based set of collection implementations based upon the Collection.com.jongsoft.lang.collection.tuple com.jongsoft.lang.collection.tuple.impl -
-
Uses of Sequence in com.jongsoft.lang
Methods in com.jongsoft.lang that return Sequence Modifier and Type Method Description static <T> Sequence<T>
Collections. List(Iterator<T> iterator)
Create a newSequence
containing all the elements in theiterator
.static <T> Sequence<T>
Collections. List(java.lang.Iterable<? extends T> elements)
Creates a newSequence
with all the elements contained in theIterable
.static <T> Sequence<T>
Collections. List(T element)
Creates anSequence
containing exactly one element, being the one passed to this call.static <T> Sequence<T>
Collections. List(T... elements)
Creates a newSequence
with the provided elements as the contents. -
Uses of Sequence in com.jongsoft.lang.collection
Methods in com.jongsoft.lang.collection that return Sequence Modifier and Type Method Description default Sequence<T>
Sequence. append(T value)
Sequence<T>
Sequence. filter(java.util.function.Predicate<T> predicate)
Sequence<T>
Sequence. insert(int index, T value)
Add an element to the list at the provided index, shifting all elements after the index one.<U> Sequence<U>
Sequence. map(java.util.function.Function<T,U> mapper)
default Sequence<T>
Sequence. orElse(java.lang.Iterable<? extends T> other)
default Sequence<T>
Sequence. orElse(java.util.function.Supplier<? extends java.lang.Iterable<? extends T>> supplier)
default Sequence<T>
Sequence. prepend(T value)
Create a new sequence with the providedvalue
at position 0 and the remainder of this sequence from position 1 to Collection.size() + 1.default Sequence<T>
Sequence. reject(java.util.function.Predicate<T> predicate)
Sequence<T>
Sequence. remove(int index)
default Sequence<T>
Sequence. remove(T value)
Removes the first element found matching the provided value.Sequence<T>
Sequence. reverse()
Reverse the order of the elements in the sequence.Sequence<T>
Sequence. sorted()
Sequence<T>
Sequence. tail()
Sequence<T>
Sequence. union(java.lang.Iterable<T> iterable)
Methods in com.jongsoft.lang.collection that return types with arguments of type Sequence Modifier and Type Method Description <K> Map<K,? extends Sequence<T>>
Sequence. groupBy(java.util.function.Function<? super T,? extends K> keyGenerator)
default Pair<? extends Sequence<T>,? extends Sequence<T>>
Sequence. split(java.util.function.Predicate<T> predicate)
default Pair<? extends Sequence<T>,? extends Sequence<T>>
Sequence. split(java.util.function.Predicate<T> predicate)
-
Uses of Sequence in com.jongsoft.lang.collection.tuple
Methods in com.jongsoft.lang.collection.tuple that return Sequence Modifier and Type Method Description Sequence
Tuple. toList()
-
Uses of Sequence in com.jongsoft.lang.collection.tuple.impl
Methods in com.jongsoft.lang.collection.tuple.impl that return Sequence Modifier and Type Method Description Sequence
AbstractTuple. toList()
-