|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.pairs.Triple<FIRST,SECOND,THIRD>
FIRST
- first typeSECOND
- second typeTHIRD
- second typepublic class Triple<FIRST,SECOND,THIRD>
Triple without comparison.
See also CTriple
Field Summary | |
---|---|
FIRST |
first
First value |
SECOND |
second
Second value |
THIRD |
third
Third value |
Constructor Summary | |
---|---|
Triple(FIRST first,
SECOND second,
THIRD third)
Constructor with fields |
Method Summary | ||
---|---|---|
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
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public FIRST first
public SECOND second
public THIRD third
Constructor Detail |
---|
public Triple(FIRST first, SECOND second, THIRD third)
first
- Value of first componentsecond
- Value of second componentthird
- Value of third componentMethod Detail |
---|
public String toString()
toString
in class Object
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)
equals
in class Object
obj
- Object to compare topublic int hashCode()
hashCode
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |