Package de.tilman_neumann.util
Class Pair<U,V>
java.lang.Object
de.tilman_neumann.util.Pair<U,V>
- Type Parameters:
U
- type of first valueV
- type of second value
- All Implemented Interfaces:
java.io.Serializable
public class Pair<U,V>
extends java.lang.Object
implements java.io.Serializable
A simple utility class combining two values of arbitrary types in one object.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Pair
-
-
Method Details
-
getFirst
-
getSecond
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-