net.java.quickcheck.collection
Class Pair<A,B>
java.lang.Object
net.java.quickcheck.collection.Pair<A,B>
- Type Parameters:
A
- type of first entryB
- 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)
|
Pair
public Pair(A first,
B second)
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.