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

java.lang.Object
  extended by edu.rice.cs.plt.tuple.Tuple
      extended by edu.rice.cs.plt.tuple.Octet<T1,T2,T3,T4,T5,T6,T7,T8>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IdentityOctet

public class Octet<T1,T2,T3,T4,T5,T6,T7,T8>
extends Tuple

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

See Also:
Serialized Form

Field Summary
protected  T8 _eighth
           
protected  T5 _fifth
           
protected  T1 _first
           
protected  T4 _fourth
           
protected  T2 _second
           
protected  T7 _seventh
           
protected  T6 _sixth
           
protected  T3 _third
           
 
Constructor Summary
Octet(T1 first, T2 second, T3 third, T4 fourth, T5 fifth, T6 sixth, T7 seventh, T8 eighth)
           
 
Method Summary
 T8 eighth()
           
 boolean equals(Object o)
           
 T5 fifth()
           
 T1 first()
           
 T4 fourth()
           
protected  int generateHashCode()
           
static
<T1,T2,T3,T4,T5,T6,T7,T8>
Octet<T1,T2,T3,T4,T5,T6,T7,T8>
make(T1 first, T2 second, T3 third, T4 fourth, T5 fifth, T6 sixth, T7 seventh, T8 eighth)
          Call the constructor (allows the type arguments to be inferred)
 T2 second()
           
 T7 seventh()
           
 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

_seventh

protected final T7 _seventh

_eighth

protected final T8 _eighth
Constructor Detail

Octet

public Octet(T1 first,
             T2 second,
             T3 third,
             T4 fourth,
             T5 fifth,
             T6 sixth,
             T7 seventh,
             T8 eighth)
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()

seventh

public T7 seventh()

eighth

public T8 eighth()

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,T7,T8> Octet<T1,T2,T3,T4,T5,T6,T7,T8> make(T1 first,
                                                                            T2 second,
                                                                            T3 third,
                                                                            T4 fourth,
                                                                            T5 fifth,
                                                                            T6 sixth,
                                                                            T7 seventh,
                                                                            T8 eighth)
Call the constructor (allows the type arguments to be inferred)