Modifier and Type | Field and Description |
---|---|
FIRST |
first
First value
|
SECOND |
second
Second value
|
THIRD |
third
Third value
|
Constructor and Description |
---|
Triple(FIRST first,
SECOND second,
THIRD third)
Constructor with fields
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Canonical equals function
|
FIRST |
getFirst()
Getter for first
|
SECOND |
getSecond()
Getter for second element in triple
|
THIRD |
getThird()
Getter for third
|
int |
hashCode()
Canonical derived hash function
|
static <F,S,T> Triple<F,S,T>[] |
newArray(int size)
Array constructor for generics
|
void |
setFirst(FIRST first)
Setter for first
|
void |
setSecond(SECOND second)
Setter for second
|
void |
setThird(THIRD third)
Setter for third
|
String |
toString()
Canonical toString operator
|
public FIRST first
public SECOND second
public THIRD third
public final FIRST getFirst()
public final void setFirst(FIRST first)
first
- new value for first elementpublic final SECOND getSecond()
public final void setSecond(SECOND second)
second
- new value for second elementpublic final THIRD getThird()
public final void setThird(THIRD third)
third
- new value for third elementpublic static final <F,S,T> Triple<F,S,T>[] newArray(int size)
F
- First typeS
- Second typeT
- Third typesize
- Size of array to be constructed.public boolean equals(Object obj)