org.jzy3d.maths
Class Pair<X,Y>

java.lang.Object
  extended by org.jzy3d.maths.Pair<X,Y>
All Implemented Interfaces:
Serializable

public class Pair<X,Y>
extends Object
implements Serializable

Class Pair. Represents a mathematical pair of objects (a, b).

See Also:
Serialized Form

Field Summary
 X a
          a in the pair (a, b)
 Y b
          b in the pair (a, b)
 
Constructor Summary
Pair(X a, Y b)
          Construct a Pair(a, b)
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

public final X a
a in the pair (a, b)


b

public final Y b
b in the pair (a, b)

Constructor Detail

Pair

public Pair(X a,
            Y b)
Construct a Pair(a, b)

Parameters:
a - a in the pair (a, b)
b - b in the pair (a, b)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object