| Package | Description |
|---|---|
| ch.awae.utils.collection.immutable |
A collection of immutable collection classes.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
List.empty()
Provides the empty list for any type argument
|
static <T> List<T> |
List.from(java.util.Collection<T> collection)
Creates a new list from a given collection
|
static <T> List<T> |
List.of(T... ts)
Creates a new list from an array of elements
|
List<T> |
List.prepend(T element)
Creates a new List with the provided element as the head and this list as
the tail
|
List<? extends T> |
List.tail()
Returns the tail of the list
|
| Constructor and Description |
|---|
List(T head,
List<? extends T> tail)
Creates a new list from a head and a tail.
|
Copyright © 2018. All Rights Reserved.