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.Object
public T getFirst()
public U getSecond()
public int hashCode()
hashCode
in class java.lang.Object
public void setFirst(T first)
first
- The first object.public void setSecond(U second)
second
- The second object.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2020 Restlet.