T
- The first object's type.U
- The second object's type.V
- The third object's type.public class Triple<T,U,V>
extends java.lang.Object
Constructor and Description |
---|
Triple(T first,
U second,
V third)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
T |
getFirst()
Returns the first object.
|
U |
getSecond()
Returns the second object.
|
V |
getThird()
Returns the third object.
|
int |
hashCode() |
void |
setFirst(T first)
Sets the first object.
|
void |
setSecond(U second)
Sets the second object.
|
void |
setThird(V third)
Sets the third 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 V getThird()
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 void setThird(V third)
third
- The third object.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.