T
- The first object's type.U
- The second object's type.public class Couple<T,U> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
String |
toString() |
public T getFirst()
public U getSecond()
public void setFirst(T first)
first
- The first object.public void setSecond(U second)
second
- The second object.Copyright © 2005–2017. All rights reserved.