|
||||||||||
| 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 | ||
|---|---|---|
boolean |
equals(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. |
|
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 String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||