|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.tuple.TupleTwo<T1,T2>
Tuple2 instead
@Deprecated public class TupleTwo<T1,T2>
Two arguments Tuple supporting hashCode(), equals(Object) and toString() using the values of
the given elements.
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 |
|---|
protected T1 valueFirst
protected T2 valueSecond
| Constructor Detail |
|---|
public TupleTwo()
TupleTwo
public TupleTwo(T1 valueFirst,
T2 valueSecond)
valueFirst - valueSecond - TupleTwopublic TupleTwo(TupleTwo<T1,T2> tupleTwo)
TupleTwo instance based on the values of an already existing instance
tupleTwo - TupleTwo| Method Detail |
|---|
public TupleTwo<T2,T1> newInvertedInstance()
TupleTwo instance with inverted first and second value
TupleTwopublic T1 getValueFirst()
Tuple.
public void setValueFirst(T1 valueFirst)
Tuple.
valueFirst - public T2 getValueSecond()
Tuple.
public void setValueSecond(T2 valueSecond)
Tuple.
valueSecond - public Map<T1,T2> asMap()
Map containing an entry based on this Tuple.
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||