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

java.lang.Object
  extended by edu.rice.cs.plt.tuple.Tuple
      extended by edu.rice.cs.plt.tuple.Quad<T1,T2,T3,T4>
          extended by edu.rice.cs.plt.tuple.IdentityQuad<T1,T2,T3,T4>
All Implemented Interfaces:
Serializable

public class IdentityQuad<T1,T2,T3,T4>
extends Quad<T1,T2,T3,T4>

A quad 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.Quad
_first, _fourth, _second, _third
 
Constructor Summary
IdentityQuad(T1 first, T2 second, T3 third, T4 fourth)
           
 
Method Summary
 boolean equals(Object o)
           
static
<T1,T2,T3,T4>
Lambda4<T1,T2,T3,T4,Quad<T1,T2,T3,T4>>
factory()
          Produce a lambda that invokes the constructor
protected  int generateHashCode()
           
static
<T1,T2,T3,T4>
IdentityQuad<T1,T2,T3,T4>
make(T1 first, T2 second, T3 third, T4 fourth)
          Call the constructor (allows the type arguments to be inferred)
 
Methods inherited from class edu.rice.cs.plt.tuple.Quad
comparator, comparator, first, firstGetter, fourth, fourthGetter, 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

IdentityQuad

public IdentityQuad(T1 first,
                    T2 second,
                    T3 third,
                    T4 fourth)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Quad<T1,T2,T3,T4>
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 Quad<T1,T2,T3,T4>

make

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


factory

public static <T1,T2,T3,T4> Lambda4<T1,T2,T3,T4,Quad<T1,T2,T3,T4>> factory()
Produce a lambda that invokes the constructor