edu.rice.cs.plt.tuple
Class IdentitySextet<T1,T2,T3,T4,T5,T6>

java.lang.Object
  extended by edu.rice.cs.plt.tuple.Tuple
      extended by edu.rice.cs.plt.tuple.Sextet<T1,T2,T3,T4,T5,T6>
          extended by edu.rice.cs.plt.tuple.IdentitySextet<T1,T2,T3,T4,T5,T6>
All Implemented Interfaces:
java.io.Serializable

public class IdentitySextet<T1,T2,T3,T4,T5,T6>
extends Sextet<T1,T2,T3,T4,T5,T6>

A sextet 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.Sextet
_fifth, _first, _fourth, _second, _sixth, _third
 
Constructor Summary
IdentitySextet(T1 first, T2 second, T3 third, T4 fourth, T5 fifth, T6 sixth)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
protected  int generateHashCode()
           
static
<T1,T2,T3,T4,T5,T6>
IdentitySextet<T1,T2,T3,T4,T5,T6>
make(T1 first, T2 second, T3 third, T4 fourth, T5 fifth, T6 sixth)
          Call the constructor (allows the type arguments to be inferred)
 
Methods inherited from class edu.rice.cs.plt.tuple.Sextet
fifth, first, fourth, second, sixth, third, 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

IdentitySextet

public IdentitySextet(T1 first,
                      T2 second,
                      T3 third,
                      T4 fourth,
                      T5 fifth,
                      T6 sixth)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Sextet<T1,T2,T3,T4,T5,T6>
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 Sextet<T1,T2,T3,T4,T5,T6>

make

public static <T1,T2,T3,T4,T5,T6> IdentitySextet<T1,T2,T3,T4,T5,T6> make(T1 first,
                                                                         T2 second,
                                                                         T3 third,
                                                                         T4 fourth,
                                                                         T5 fifth,
                                                                         T6 sixth)
Call the constructor (allows the type arguments to be inferred)