Package | Description |
---|---|
javaslang | |
javaslang.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
default Stack<T> |
Value.toStack()
Converts this to a
Stack . |
Modifier and Type | Interface and Description |
---|---|
interface |
List<T>
An immutable
List is an eager sequence of elements. |
Modifier and Type | Class and Description |
---|---|
static class |
List.Cons<T>
Non-empty
List , consisting of a head and a tail . |
static class |
List.Nil<T>
Representation of the singleton empty
List . |
Modifier and Type | Method and Description |
---|---|
static <T> Stack<T> |
Stack.narrow(Stack<? extends T> stack)
Narrows a widened
Stack<? extends T> to Stack<T>
by performing a type-safe cast. |
Stack<T> |
Stack.pop()
Removes the head element from this Stack.
|
Stack<T> |
Stack.push(T... elements)
Pushes the given elements on top of this Stack.
|
Stack<T> |
Stack.push(T element)
Pushes a new element on top of this Stack.
|
Stack<T> |
Stack.pushAll(Iterable<T> elements)
Pushes the given elements on top of this Stack.
|
Modifier and Type | Method and Description |
---|---|
Tuple2<T,? extends Stack<T>> |
Stack.pop2()
Removes the head element from this Stack.
|
Option<? extends Tuple2<T,? extends Stack<T>>> |
Stack.pop2Option()
Removes the head element from this Stack.
|
Option<? extends Stack<T>> |
Stack.popOption()
Removes the head element from this Stack.
|
Modifier and Type | Method and Description |
---|---|
static <T> Stack<T> |
Stack.narrow(Stack<? extends T> stack)
Narrows a widened
Stack<? extends T> to Stack<T>
by performing a type-safe cast. |
Copyright © 2016. All Rights Reserved.