T
- The type of elements@Immutable public final class SNonEmptyList<T> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<T> |
getElements() |
int |
hashCode() |
static <T> SNonEmptyList<T> |
newList(List<T> elements)
Construct a new non-empty list from the given list
|
static <T> SNonEmptyList<T> |
one(T e)
Construct a new non-empty list from the given element
|
String |
toString() |
public static <T> SNonEmptyList<T> newList(List<T> elements)
T
- The type of elementselements
- The list of elementspublic static <T> SNonEmptyList<T> one(T e)
T
- The type of elementse
- A single elementCopyright © 2017 <code@io7m.com> http://io7m.com