@Generated(value="com.github.sviperll.adt4j.GenerateValueClassForVisitorProcessor") @ParametersAreNonnullByDefault public class List<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
List(List<T> implementation) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(ListVisitor<T,List<T>,R> visitor) |
static <T> List<T> |
cons(T head,
List<T> tail) |
boolean |
equals(Object thatObject) |
static <T> ListVisitor<T,List<T>,List<T>> |
factory() |
int |
hashCode() |
T |
head() |
boolean |
isEmpty() |
static <T> List<T> |
nil() |
List<T> |
tail() |
String |
toString() |
List<T> |
withHead(T newValue) |
public final <R> R accept(ListVisitor<T,List<T>,R> visitor)
public final boolean isEmpty()
@Nonnull public static <T> ListVisitor<T,List<T>,List<T>> factory()
Copyright © 2015. All rights reserved.