public final class Pair
extends java.lang.Object
Note that they do not protect from malevolent behavior: if one or another object in the tuple is mutable, then that can be changed with the usual bad effects.
| Constructor and Description |
|---|
Pair(java.lang.Object value1,
java.lang.Object value2) |
public java.lang.Object getFirst()
public java.lang.Object getSecond()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object