edu.rice.cs.plt.tuple
Class IdentityTriple<T1,T2,T3>

java.lang.Object
  extended by edu.rice.cs.plt.tuple.Tuple
      extended by edu.rice.cs.plt.tuple.Triple<T1,T2,T3>
          extended by 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

Field Summary
 
Fields inherited from class edu.rice.cs.plt.tuple.Triple
_first, _second, _third
 
Constructor Summary
IdentityTriple(T1 first, T2 second, T3 third)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
static
<T1,T2,T3> Lambda3<T1,T2,T3,Triple<T1,T2,T3>>
factory()
          Produce a lambda that invokes the constructor
protected  int generateHashCode()
           
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)
 
Methods inherited from class edu.rice.cs.plt.tuple.Triple
comparator, comparator, first, firstGetter, second, secondGetter, third, thirdGetter, 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
 

Constructor Detail

IdentityTriple

public IdentityTriple(T1 first,
                      T2 second,
                      T3 third)
Method Detail

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