Package | Description |
---|---|
javaslang.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
static <T> Tree.Node<T> |
Tree.of(T value)
Returns a new Node containing the given value and having no children.
|
static <T> Tree.Node<T> |
Tree.of(T value,
Iterable<Tree.Node<T>> children)
Returns a new Node containing the given value and having the given children.
|
static <T> Tree.Node<T> |
Tree.of(T value,
Tree.Node<T>... children)
Returns a new Node containing the given value and having the given children.
|
Modifier and Type | Method and Description |
---|---|
List<Tree.Node<T>> |
Tree.getChildren()
Returns the children of this tree.
|
List<Tree.Node<T>> |
Tree.Node.getChildren() |
List<Tree.Node<T>> |
Tree.Empty.getChildren() |
Modifier and Type | Method and Description |
---|---|
static <T> Tree.Node<T> |
Tree.of(T value,
Tree.Node<T>... children)
Returns a new Node containing the given value and having the given children.
|
Modifier and Type | Method and Description |
---|---|
static <T> Tree.Node<T> |
Tree.of(T value,
Iterable<Tree.Node<T>> children)
Returns a new Node containing the given value and having the given children.
|
Constructor and Description |
---|
Node(T value,
List<Tree.Node<T>> children)
Constructs a rose tree branch.
|
Copyright © 2016. All Rights Reserved.