edu.rice.cs.plt.tuple
Class IdentityQuad<T1,T2,T3,T4>
java.lang.Object
edu.rice.cs.plt.tuple.Tuple
edu.rice.cs.plt.tuple.Quad<T1,T2,T3,T4>
edu.rice.cs.plt.tuple.IdentityQuad<T1,T2,T3,T4>
- All Implemented Interfaces:
- Serializable
public class IdentityQuad<T1,T2,T3,T4>
- extends Quad<T1,T2,T3,T4>
A quad that defines equals(java.lang.Object)
and Tuple.hashCode()
in terms of its elements'
identity (==
) instead of equality (@code equals})
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(Object o)
|
static
<T1,T2,T3,T4>
Lambda4<T1,T2,T3,T4,Quad<T1,T2,T3,T4>> |
|
factory()
Produce a lambda that invokes the constructor |
protected int |
generateHashCode()
|
static
|
make(T1 first,
T2 second,
T3 third,
T4 fourth)
Call the constructor (allows the type arguments to be inferred) |
Methods inherited from class edu.rice.cs.plt.tuple.Quad |
comparator, comparator, first, firstGetter, fourth, fourthGetter, second, secondGetter, third, thirdGetter, toString |
Methods inherited from class edu.rice.cs.plt.tuple.Tuple |
hashCode |
IdentityQuad
public IdentityQuad(T1 first,
T2 second,
T3 third,
T4 fourth)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Quad<T1,T2,T3,T4>
- Returns:
true
iff this
is of the same class as o
, and each
corresponding element is identical (according to ==
)
generateHashCode
protected int generateHashCode()
- Overrides:
generateHashCode
in class Quad<T1,T2,T3,T4>
make
public static <T1,T2,T3,T4> IdentityQuad<T1,T2,T3,T4> make(T1 first,
T2 second,
T3 third,
T4 fourth)
- Call the constructor (allows the type arguments to be inferred)
factory
public static <T1,T2,T3,T4> Lambda4<T1,T2,T3,T4,Quad<T1,T2,T3,T4>> factory()
- Produce a lambda that invokes the constructor