Class Pair<T>
java.lang.Object
org.biojava.nbio.structure.contact.Pair<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable
A Pair of objects. Implements an equals and hashCode so
that it can be used as key in hashes.
Based on the JUNG graph library implementation.
- Author:
- duarte_j
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pair
Creates aPairfrom the specified elements.- Parameters:
value1- the first value in the newPairvalue2- the second value in the newPair- Throws:
IllegalArgumentException- if either argument is null
-
-
Method Details