edu.rice.cs.plt.tuple
Class IdentityTriple<T1,T2,T3>
java.lang.Object
edu.rice.cs.plt.tuple.Tuple
edu.rice.cs.plt.tuple.Triple<T1,T2,T3>
edu.rice.cs.plt.tuple.IdentityTriple<T1,T2,T3>
- All Implemented Interfaces:
- java.io.Serializable
public class IdentityTriple<T1,T2,T3>
- extends Triple<T1,T2,T3>
A triple 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(java.lang.Object o)
|
static
|
factory()
Produce a lambda that invokes the constructor |
protected int |
generateHashCode()
|
static
|
make(T1 first,
T2 second,
T3 third)
Call the constructor (allows the type arguments to be inferred) |
| 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 |
IdentityTriple
public IdentityTriple(T1 first,
T2 second,
T3 third)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class Triple<T1,T2,T3>
- 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 Triple<T1,T2,T3>
make
public static <T1,T2,T3> IdentityTriple<T1,T2,T3> make(T1 first,
T2 second,
T3 third)
- Call the constructor (allows the type arguments to be inferred)
factory
public static <T1,T2,T3> Lambda3<T1,T2,T3,Triple<T1,T2,T3>> factory()
- Produce a lambda that invokes the constructor