|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.tuple.Tuple
edu.rice.cs.plt.tuple.Quad<T1,T2,T3,T4>
public class Quad<T1,T2,T3,T4>
An arbitrary 4-tuple of objects; overrides toString(), equals(Object),
and Tuple.hashCode().
| Field Summary | |
|---|---|
protected T1 |
_first
|
protected T4 |
_fourth
|
protected T2 |
_second
|
protected T3 |
_third
|
| Constructor Summary | |
|---|---|
Quad(T1 first,
T2 second,
T3 third,
T4 fourth)
|
|
| Method Summary | ||
|---|---|---|
static
|
comparator()
Produce a comparator for quads, ordered by the natural order of the elements (the leftmost elements have the highest sort priority). |
|
static
|
comparator(java.util.Comparator<? super T1> comp1,
java.util.Comparator<? super T2> comp2,
java.util.Comparator<? super T3> comp3,
java.util.Comparator<? super T4> comp4)
Produce a comparator for quads, ordered by the given comparators (the leftmost elements have the highest sort priority). |
|
boolean |
equals(java.lang.Object o)
|
|
static
|
factory()
Produce a lambda that invokes the constructor |
|
T1 |
first()
|
|
static
|
firstGetter()
Produce a lambda that invokes first() on a provided quad. |
|
T4 |
fourth()
|
|
static
|
fourthGetter()
Produce a lambda that invokes fourth() on a provided quad. |
|
protected int |
generateHashCode()
|
|
static
|
make(T1 first,
T2 second,
T3 third,
T4 fourth)
Call the constructor (allows the type arguments to be inferred) |
|
T2 |
second()
|
|
static
|
secondGetter()
Produce a lambda that invokes second() on a provided quad. |
|
T3 |
third()
|
|
static
|
thirdGetter()
Produce a lambda that invokes third() on a provided quad. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class edu.rice.cs.plt.tuple.Tuple |
|---|
hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final T1 _first
protected final T2 _second
protected final T3 _third
protected final T4 _fourth
| Constructor Detail |
|---|
public Quad(T1 first,
T2 second,
T3 third,
T4 fourth)
| Method Detail |
|---|
public T1 first()
public T2 second()
public T3 third()
public T4 fourth()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue iff this is of the same class as o, and each
corresponding element is equal (according to equals)protected int generateHashCode()
generateHashCode in class Tuple
public static <T1,T2,T3,T4> Quad<T1,T2,T3,T4> make(T1 first,
T2 second,
T3 third,
T4 fourth)
public static <T1,T2,T3,T4> Lambda4<T1,T2,T3,T4,Quad<T1,T2,T3,T4>> factory()
public static <T> Lambda<Quad<? extends T,?,?,?>,T> firstGetter()
first() on a provided quad.
public static <T> Lambda<Quad<?,? extends T,?,?>,T> secondGetter()
second() on a provided quad.
public static <T> Lambda<Quad<?,?,? extends T,?>,T> thirdGetter()
third() on a provided quad.
public static <T> Lambda<Quad<?,?,?,? extends T>,T> fourthGetter()
fourth() on a provided quad.
public static <T1 extends java.lang.Comparable<? super T1>,T2 extends java.lang.Comparable<? super T2>,T3 extends java.lang.Comparable<? super T3>,T4 extends java.lang.Comparable<? super T4>> TotalOrder<Quad<? extends T1,? extends T2,? extends T3,? extends T4>> comparator()
public static <T1,T2,T3,T4> TotalOrder<Quad<? extends T1,? extends T2,? extends T3,? extends T4>> comparator(java.util.Comparator<? super T1> comp1,
java.util.Comparator<? super T2> comp2,
java.util.Comparator<? super T3> comp3,
java.util.Comparator<? super T4> comp4)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||