com.emarsys.ecommon.collections
Class Tuple2<S,T>

java.lang.Object
  extended by com.emarsys.ecommon.collections.Tuple2<S,T>

public class Tuple2<S,T>
extends java.lang.Object

A basic container of two items, useful to return multiple elements from a m ethod.


Constructor Summary
Tuple2(S first, T second)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 S getFirst()
           
 T getSecond()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple2

public Tuple2(S first,
              T second)
Method Detail

getFirst

public S getFirst()

getSecond

public T getSecond()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010 emarsys AG. All Rights Reserved.