de.lmu.ifi.dbs.elki.utilities.pairs
Class Triple<FIRST,SECOND,THIRD>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.pairs.Triple<FIRST,SECOND,THIRD>
Type Parameters:
FIRST - first type
SECOND - second type
THIRD - second type
Direct Known Subclasses:
CTriple

public class Triple<FIRST,SECOND,THIRD>
extends Object

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
<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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public FIRST first
First value


second

public SECOND second
Second value


third

public THIRD third
Third value

Constructor Detail

Triple

public Triple(FIRST first,
              SECOND second,
              THIRD third)
Constructor with fields

Parameters:
first - Value of first component
second - Value of second component
third - Value of third component
Method Detail

toString

public String toString()
Canonical toString operator

Overrides:
toString in class Object

getFirst

public final FIRST getFirst()
Getter for first

Returns:
first element in triple

setFirst

public final void setFirst(FIRST first)
Setter for first

Parameters:
first - new value for first element

getSecond

public final SECOND getSecond()
Getter for second element in triple

Returns:
second element in triple

setSecond

public final void setSecond(SECOND second)
Setter for second

Parameters:
second - new value for second element

getThird

public final THIRD getThird()
Getter for third

Returns:
third element in triple

setThird

public final void setThird(THIRD third)
Setter for third

Parameters:
third - new value for third element

newArray

public static final <F,S,T> Triple<F,S,T>[] newArray(int size)
Array constructor for generics

Type Parameters:
F - First type
S - Second type
T - Third type
Parameters:
size - Size of array to be constructed.
Returns:
new array of the requested size.

equals

public boolean equals(Object obj)
Canonical equals function

Overrides:
equals in class Object
Parameters:
obj - Object to compare to

hashCode

public int hashCode()
Canonical derived hash function

Overrides:
hashCode in class Object

Release 0.4.0 (2011-09-20_1324)