de.hs_rm.cs.lecturenotes.shared.util
Class Pair<A,B>

java.lang.Object
  extended by de.hs_rm.cs.lecturenotes.shared.util.Pair<A,B>
Type Parameters:
A - Type for first object
B - Type for second object

public final class Pair<A,B>
extends java.lang.Object

Simple helper container to hold two objects.

Version:
$LastChangedRevision: 231 $
Author:
Enrico Homann

Constructor Summary
Pair(A objA, B objB)
          Constructor.
 
Method Summary
 A getObjectA()
          Will return objectA.
 B getObjectB()
          Will return objectB.
 void setObjectA(A oA)
          Sets objectA using A objectA.
 void setObjectB(B oB)
          Sets objectB using B objectB.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A objA,
            B objB)
Constructor.

Parameters:
objA - A
objB - B
Method Detail

getObjectA

public A getObjectA()
Will return objectA.

Returns:
A

setObjectA

public void setObjectA(A oA)
Sets objectA using A objectA.

Parameters:
oA - A

getObjectB

public B getObjectB()
Will return objectB.

Returns:
B

setObjectB

public void setObjectB(B oB)
Sets objectB using B objectB.

Parameters:
oB - B