
FIRST - first typeSECOND - second typeTHIRD - second typepublic final class CTriple<FIRST extends Comparable<? super FIRST>,SECOND extends Comparable<? super SECOND>,THIRD extends Comparable<? super THIRD>> extends Triple<FIRST,SECOND,THIRD> implements Comparable<CTriple<FIRST,SECOND,THIRD>>
| Constructor and Description |
|---|
CTriple(FIRST first,
SECOND second,
THIRD third)
Constructor with fields
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CTriple<FIRST,SECOND,THIRD> other)
Generic derived compare function.
|
static <F extends Comparable<F>,S extends Comparable<S>,T extends Comparable<T>> |
newArray(int size)
Array constructor for generics
|
String |
toString()
Canonical toString operator
|
public String toString()
toString in class Triple<FIRST extends Comparable<? super FIRST>,SECOND extends Comparable<? super SECOND>,THIRD extends Comparable<? super THIRD>>public int compareTo(CTriple<FIRST,SECOND,THIRD> other)
compareTo in interface Comparable<CTriple<FIRST extends Comparable<? super FIRST>,SECOND extends Comparable<? super SECOND>,THIRD extends Comparable<? super THIRD>>>other - Object to compare topublic static final <F extends Comparable<F>,S extends Comparable<S>,T extends Comparable<T>> CTriple<F,S,T>[] newArray(int size)
F - First typeS - Second typeT - Third typesize - Size of array to be constructed.