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

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

public class Pair<X,Y>
extends java.lang.Object
implements java.io.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(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
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 java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object