gr.demokritos.iit.jinsect.structs
Class Pair<ObjTypeFirst,ObjTypeSecond>
java.lang.Object
gr.demokritos.iit.jinsect.structs.Pair<ObjTypeFirst,ObjTypeSecond>
public class Pair<ObjTypeFirst,ObjTypeSecond>
- extends java.lang.Object
Represents a pair of elements of any type (as a templated class).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
first
protected ObjTypeFirst first
second
protected ObjTypeSecond second
Pair
public Pair(ObjTypeFirst oFirst,
ObjTypeSecond oSecond)
- Creates a new instance of Pair, given two objects.
- Parameters:
oFirst
- The first object.oSecond
- The second object.
getFirst
public ObjTypeFirst getFirst()
- Returns the first object of the pair.
- Returns:
- The first object.
getSecond
public ObjTypeSecond getSecond()
- Returns the second object of the pair.
- Returns:
- The second object.