org.deegree.commons.utils
Class Triple<T,U,V>

java.lang.Object
  extended by org.deegree.commons.utils.Triple<T,U,V>
Type Parameters:
T -
U -
V -

public final class Triple<T,U,V>
extends Object

Triple

Version:
$Revision: 25171 $, $Date: 2010-07-05 16:21:54 +0200 (Mon, 05 Jul 2010) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Field Summary
 T first
           
 U second
           
 V third
           
 
Constructor Summary
Triple()
           
Triple(T t, U u, V v)
           
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
          Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public T first

second

public U second

third

public V third
Constructor Detail

Triple

public Triple()

Triple

public Triple(T t,
              U u,
              V v)
Parameters:
t -
u -
v -
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. It is created from field f as follows:

Combining the hash code(s) computed above: result = 37 * result + code;

Overrides:
hashCode in class Object
Returns:
(int) ( result >>> 32 ) ^ (int) result;
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.