Package com.senzing.g2.engine.plugin
Class Pair<T1,T2>
- java.lang.Object
-
- com.senzing.g2.engine.plugin.Pair<T1,T2>
-
- Type Parameters:
T1
- The type of the first value.T2
- The type of the second value.
public class Pair<T1,T2> extends Object
A simple pair/tuple class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
T1
getFirst()
Gets the first value of the pair.T2
getSecond()
Gets the second value of the pair.int
hashCode()
void
setFirst(T1 value)
Sets the first value of the pair.void
setSecond(T2 value)
Sets the second value.String
toString()
-
-
-
Method Detail
-
getFirst
public T1 getFirst()
Gets the first value of the pair.- Returns:
- The first value of the pair.
-
setFirst
public void setFirst(T1 value)
Sets the first value of the pair.- Parameters:
value
- The first value of the pair.
-
getSecond
public T2 getSecond()
Gets the second value of the pair.- Returns:
- The second value of the pair.
-
setSecond
public void setSecond(T2 value)
Sets the second value.- Parameters:
value
- The second value of the pair.
-
-