net.java.quickcheck.collection
Class Pair<A,B>

java.lang.Object
  extended by net.java.quickcheck.collection.Pair<A,B>
Type Parameters:
A - type of first entry
B - type of second entry
Direct Known Subclasses:
Triple

public class Pair<A,B>
extends Object

A tuple of two values.


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

Constructor Detail

Pair

public Pair(A first,
            B second)
Method Detail

getFirst

public A getFirst()

getSecond

public B getSecond()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2011. All Rights Reserved.