@Generated(value="com.github.sviperll.adt4j.GenerateValueClassForVisitorProcessor") @ParametersAreNonnullByDefault public class ComparableList<T extends Object & Comparable<? super T>> extends Object implements Comparable<ComparableList<T>>
| Modifier | Constructor and Description |
|---|---|
protected |
ComparableList(ComparableList<T> implementation) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(ComparableListVisitor<T,ComparableList<T>,R> visitor) |
int |
compareTo(ComparableList<T> that) |
static <T extends Object & Comparable<? super T>> |
empty() |
boolean |
equals(Object thatObject) |
static <T extends Object & Comparable<? super T>> |
factory() |
int |
hashCode() |
T |
head() |
boolean |
isEmpty() |
static <T extends Object & Comparable<? super T>> |
prepend(T head,
ComparableList<T> tail) |
ComparableList<T> |
tail() |
String |
toString() |
ComparableList<T> |
withHead(T newValue) |
protected ComparableList(@Nonnull ComparableList<T> implementation)
@Nonnull public static <T extends Object & Comparable<? super T>> ComparableList<T> empty()
@Nonnull public static <T extends Object & Comparable<? super T>> ComparableList<T> prepend(@Nonnull T head, @Nonnull ComparableList<T> tail)
public final <R> R accept(ComparableListVisitor<T,ComparableList<T>,R> visitor)
@Nonnull public final ComparableList<T> tail()
@Nonnull public final ComparableList<T> withHead(@Nonnull T newValue)
public final boolean isEmpty()
public final int compareTo(ComparableList<T> that)
compareTo in interface Comparable<ComparableList<T extends Object & Comparable<? super T>>>@Nonnull public static <T extends Object & Comparable<? super T>> ComparableListVisitor<T,ComparableList<T>,ComparableList<T>> factory()
Copyright © 2015. All rights reserved.