org.codehaus.jparsec.functors
Class Pair<A,B>

java.lang.Object
  extended by org.codehaus.jparsec.functors.Pair<A,B>
Direct Known Subclasses:
Tuple3

public class Pair<A,B>
extends Object

Immutable data holder for 2 values.

Author:
Ben Yu

Field Summary
 A a
           
 B b
           
 
Constructor Summary
Pair(A a, B b)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

a

public final A a

b

public final B b
Constructor Detail

Pair

public Pair(A a,
            B b)
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.