public class FancyList<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
FancyList.Cases<T,R> |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object thatObject) |
int |
hashCode() |
static <T> FancyList<T> |
list(T head,
FancyList<T> tail) |
<R> R |
match(FancyList.Cases<T,R> cases) |
static <T> FancyList<T> |
nil() |
String |
toString() |
protected com.github.sviperll.adt4j.examples.BaseFancyList<S,T> |
withHead(T newValue) |
public static <T> FancyList<T> nil()
public <R> R match(FancyList.Cases<T,R> cases)
@Nonnull protected final com.github.sviperll.adt4j.examples.BaseFancyList<S,T> withHead(@Nonnull T newValue)
Copyright © 2015. All rights reserved.