T - The first object's type.U - The second object's type.public class Couple<T,U>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
T |
getFirst()
Returns the first object.
|
U |
getSecond()
Returns the second object.
|
int |
hashCode() |
void |
setFirst(T first)
Sets the first object.
|
void |
setSecond(U second)
Sets the second object.
|
java.lang.String |
toString() |
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic T getFirst()
public U getSecond()
public void setFirst(T first)
first - The first object.public void setSecond(U second)
second - The second object.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2012. All Rights Reserved.