de.upb.swtpra05.group03.shuttle
Class DoubleHashtable

java.lang.Object
  extended byde.upb.swtpra05.group03.shuttle.DoubleHashtable

class DoubleHashtable
extends java.lang.Object

helper for connection object which implements a hastable with two keys

Version:
$Revision: 1.3 $

Field Summary
private  java.util.Hashtable outerHash
          The oute hashtable
 
Constructor Summary
(package private) DoubleHashtable()
          Constructor of DoubleHashtable
 
Method Summary
 java.lang.Object get(java.lang.Object keyA, java.lang.Object keyB)
          Gets a stored object out of the collection
 void put(java.lang.Object keyA, java.lang.Object keyB, java.lang.Object value)
          Puts the value with keyA and keyB into the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outerHash

private java.util.Hashtable outerHash
The oute hashtable

Constructor Detail

DoubleHashtable

DoubleHashtable()
Constructor of DoubleHashtable

Method Detail

put

public void put(java.lang.Object keyA,
                java.lang.Object keyB,
                java.lang.Object value)
Puts the value with keyA and keyB into the collection

Parameters:
keyA - The first key of the value
keyB - The secont key of the value
value - The value to put into the collection

get

public java.lang.Object get(java.lang.Object keyA,
                            java.lang.Object keyB)
Gets a stored object out of the collection

Parameters:
keyA - The first key which identifies the object
keyB - The second key which identifies the object
Returns:
The object identified by keyA and keyB