edu.rice.cs.plt.tuple
Class Sextet<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>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IdentitySextet

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

An arbitrary 6-tuple of objects; overrides toString(), equals(Object), and Tuple.hashCode().

See Also:
Serialized Form

Field Summary
protected  T5 _fifth
           
protected  T1 _first
           
protected  T4 _fourth
           
protected  T2 _second
           
protected  T6 _sixth
           
protected  T3 _third
           
 
Constructor Summary
Sextet(T1 first, T2 second, T3 third, T4 fourth, T5 fifth, T6 sixth)
           
 
Method Summary
 boolean equals(Object o)
           
 T5 fifth()
           
 T1 first()
           
 T4 fourth()
           
protected  int generateHashCode()
           
static
<T1,T2,T3,T4,T5,T6>
Sextet<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)
 T2 second()
           
 T6 sixth()
           
 T3 third()
           
 String 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
 

Field Detail

_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

_sixth

protected final T6 _sixth
Constructor Detail

Sextet

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

first

public T1 first()

second

public T2 second()

third

public T3 third()

fourth

public T4 fourth()

fifth

public T5 fifth()

sixth

public T6 sixth()

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,T6> Sextet<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)