edu.rice.cs.plt.tuple
Class Quint<T1,T2,T3,T4,T5>
java.lang.Object
edu.rice.cs.plt.tuple.Tuple
edu.rice.cs.plt.tuple.Quint<T1,T2,T3,T4,T5>
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- IdentityQuint
public class Quint<T1,T2,T3,T4,T5>
- extends Tuple
An arbitrary 5-tuple of objects; overrides toString(), equals(Object),
and Tuple.hashCode().
- See Also:
- Serialized Form
|
Constructor Summary |
Quint(T1 first,
T2 second,
T3 third,
T4 fourth,
T5 fifth)
|
|
Method Summary |
boolean |
equals(Object o)
|
T5 |
fifth()
|
T1 |
first()
|
T4 |
fourth()
|
protected int |
generateHashCode()
|
static
<T1,T2,T3,T4,T5>
Quint<T1,T2,T3,T4,T5> |
|
make(T1 first,
T2 second,
T3 third,
T4 fourth,
T5 fifth)
Call the constructor (allows the type arguments to be inferred) |
T2 |
second()
|
T3 |
third()
|
String |
toString()
|
| Methods inherited from class edu.rice.cs.plt.tuple.Tuple |
hashCode |
_first
protected final T1 _first
_second
protected final T2 _second
_third
protected final T3 _third
_fourth
protected final T4 _fourth
_fifth
protected final T5 _fifth
Quint
public Quint(T1 first,
T2 second,
T3 third,
T4 fourth,
T5 fifth)
first
public T1 first()
second
public T2 second()
third
public T3 third()
fourth
public T4 fourth()
fifth
public T5 fifth()
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
- Returns:
true iff this is of the same class as o, and each
corresponding element is equal (according to equals)
generateHashCode
protected int generateHashCode()
- Specified by:
generateHashCode in class Tuple
make
public static <T1,T2,T3,T4,T5> Quint<T1,T2,T3,T4,T5> make(T1 first,
T2 second,
T3 third,
T4 fourth,
T5 fifth)
- Call the constructor (allows the type arguments to be inferred)