org.omnaest.utils.tuple
Class TupleTwo<T1,T2>

java.lang.Object
  extended by org.omnaest.utils.tuple.TupleTwo<T1,T2>
All Implemented Interfaces:
Serializable, Tuple

Deprecated. use Tuple2 instead

@Deprecated
public class TupleTwo<T1,T2>
extends Object
implements Tuple

Two arguments Tuple supporting hashCode(), equals(Object) and toString() using the values of the given elements.

Author:
Omnaest
See Also:
Tuple, TupleThree, Serialized Form

Field Summary
protected  T1 valueFirst
          Deprecated.  
protected  T2 valueSecond
          Deprecated.  
 
Constructor Summary
TupleTwo()
          Deprecated.  
TupleTwo(T1 valueFirst, T2 valueSecond)
          Deprecated.  
TupleTwo(TupleTwo<T1,T2> tupleTwo)
          Deprecated. Creates a new TupleTwo instance based on the values of an already existing instance
 
Method Summary
 Map<T1,T2> asMap()
          Deprecated. Returns a Map containing an entry based on this Tuple.
 boolean equals(Object obj)
          Deprecated.  
 T1 getValueFirst()
          Deprecated. Returns the first value of the Tuple.
 T2 getValueSecond()
          Deprecated. Returns the second value of the Tuple.
 int hashCode()
          Deprecated.  
 TupleTwo<T2,T1> newInvertedInstance()
          Deprecated. Returns a new TupleTwo instance with inverted first and second value
 void setValueFirst(T1 valueFirst)
          Deprecated. Sets the first value of the Tuple.
 void setValueSecond(T2 valueSecond)
          Deprecated. Sets the second value of the Tuple.
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

valueFirst

protected T1 valueFirst
Deprecated. 

valueSecond

protected T2 valueSecond
Deprecated. 
Constructor Detail

TupleTwo

public TupleTwo()
Deprecated. 
See Also:
TupleTwo

TupleTwo

public TupleTwo(T1 valueFirst,
                T2 valueSecond)
Deprecated. 
Parameters:
valueFirst -
valueSecond -
See Also:
TupleTwo

TupleTwo

public TupleTwo(TupleTwo<T1,T2> tupleTwo)
Deprecated. 
Creates a new TupleTwo instance based on the values of an already existing instance

Parameters:
tupleTwo -
See Also:
TupleTwo
Method Detail

newInvertedInstance

public TupleTwo<T2,T1> newInvertedInstance()
Deprecated. 
Returns a new TupleTwo instance with inverted first and second value

Returns:
TupleTwo

getValueFirst

public T1 getValueFirst()
Deprecated. 
Returns the first value of the Tuple.

Returns:

setValueFirst

public void setValueFirst(T1 valueFirst)
Deprecated. 
Sets the first value of the Tuple.

Parameters:
valueFirst -

getValueSecond

public T2 getValueSecond()
Deprecated. 
Returns the second value of the Tuple.

Returns:

setValueSecond

public void setValueSecond(T2 valueSecond)
Deprecated. 
Sets the second value of the Tuple.

Parameters:
valueSecond -

asMap

public Map<T1,T2> asMap()
Deprecated. 
Returns a Map containing an entry based on this Tuple.

Returns:

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

equals

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


Copyright © 2013. All Rights Reserved.