|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hpi.fgis.voidgen.hadoop.datatypes.Pair<T1,T2>
T1
- The type of the left element of the pair.T2
- The type of the right element of the pair.public class Pair<T1,T2>
Represents a pair of arbitrary types.
Field Summary | |
---|---|
protected T1 |
left
The left part of the pair. |
protected T2 |
right
The right part of the pair. |
Constructor Summary | |
---|---|
Pair()
Default constructor. |
|
Pair(T1 left,
T2 right)
Constructor for creation of a pair with given values. |
Method Summary | |
---|---|
T1 |
getLeft()
Getter. |
T2 |
getRight()
Getter. |
int |
hashCode()
|
void |
setLeft(T1 left)
Setter. |
void |
setRight(T2 right)
Setter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected T1 left
protected T2 right
Constructor Detail |
---|
public Pair(T1 left, T2 right)
left
- The left value.right
- The right value.public Pair()
Method Detail |
---|
public T1 getLeft()
public T2 getRight()
public void setLeft(T1 left)
left
- The left element of the pair.public void setRight(T2 right)
right
- The right element of the pair.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |