| Package | Description |
|---|---|
| com.codepoetics.protonpack |
| Modifier and Type | Method and Description |
|---|---|
default Seq<T> |
Seq.append(Seq<T> items)
Append a second sequence to this sequence.
|
Seq<T> |
Seq.cons(T item)
Add an item to the start of the sequence.
|
static <T> Seq<T> |
Seq.empty()
Creates an empty sequence.
|
static <T> Seq<T> |
Seq.of(Collection<T> collection)
Creates a sequence from a collection
|
static <T> Seq<T> |
Seq.of(List<T> list)
Creates a sequence from an ordered list
|
static <T> Seq<T> |
Seq.of(java.util.stream.Stream<T> stream)
Creates a sequence from a stream by consing each item onto an initially empty stream.
|
static <T> Seq<T> |
Seq.of(T... items)
Creates a sequence containing zero or more items.
|
default Seq<T> |
Seq.reverse()
Returns the stream in reverse order.
|
static <T> Seq<T> |
Seq.singleton(T item)
Creates a sequence containing only one item.
|
Seq<T> |
Seq.tail()
Get the remaining items in the sequence.
|
default Seq<T> |
Streamable.toSeq()
Stream this streamable, and collect the stream into a Seq.
|
default Seq<T> |
Seq.toSeq() |
| Modifier and Type | Method and Description |
|---|---|
default Seq<T> |
Seq.append(Seq<T> items)
Append a second sequence to this sequence.
|
Copyright © 2020. All rights reserved.