gr.demokritos.iit.jinsect.structs
Class Pair<ObjTypeFirst,ObjTypeSecond>

java.lang.Object
  extended by 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).


Field Summary
protected  ObjTypeFirst first
           
protected  ObjTypeSecond second
           
 
Constructor Summary
Pair(ObjTypeFirst oFirst, ObjTypeSecond oSecond)
          Creates a new instance of Pair, given two objects.
 
Method Summary
 ObjTypeFirst getFirst()
          Returns the first object of the pair.
 ObjTypeSecond getSecond()
          Returns the second object of the pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

protected ObjTypeFirst first

second

protected ObjTypeSecond second
Constructor Detail

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.
Method Detail

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.