edu.rice.cs.plt.tuple
Class IdentityOctet<T1,T2,T3,T4,T5,T6,T7,T8>
java.lang.Object
edu.rice.cs.plt.tuple.Tuple
edu.rice.cs.plt.tuple.Octet<T1,T2,T3,T4,T5,T6,T7,T8>
edu.rice.cs.plt.tuple.IdentityOctet<T1,T2,T3,T4,T5,T6,T7,T8>
- All Implemented Interfaces:
- java.io.Serializable
public class IdentityOctet<T1,T2,T3,T4,T5,T6,T7,T8>
- extends Octet<T1,T2,T3,T4,T5,T6,T7,T8>
An octet 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)
|
protected int |
generateHashCode()
|
static
<T1,T2,T3,T4,T5,T6,T7,T8>
IdentityOctet<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) |
| 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 |
IdentityOctet
public IdentityOctet(T1 first,
T2 second,
T3 third,
T4 fourth,
T5 fifth,
T6 sixth,
T7 seventh,
T8 eighth)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class Octet<T1,T2,T3,T4,T5,T6,T7,T8>
- 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 Octet<T1,T2,T3,T4,T5,T6,T7,T8>
make
public static <T1,T2,T3,T4,T5,T6,T7,T8> IdentityOctet<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)