public class ReturnObjectBag extends java.lang.Object implements Verifiable
ReturnObjectList| Constructor and Description |
|---|
ReturnObjectBag(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Hashtable |
getHashTable() |
boolean |
getNextReturnBoolean(java.lang.Object key) |
int |
getNextReturnInt(java.lang.Object key) |
java.lang.Object |
getNextReturnObject(int key)
Returns the next object in the ReturnObjectList for a given int key.
|
java.lang.Object |
getNextReturnObject(java.lang.Object key)
Returns the next object in the ReturnObjectList for a given key.
|
void |
putObjectToReturn(int key,
java.lang.Object value)
Places an object into the list of return objects for a particular int key
|
void |
putObjectToReturn(java.lang.Object key,
boolean value)
Places an boolean into the list of return objects for a particular key.
|
void |
putObjectToReturn(java.lang.Object key,
int value)
Places an int into the list of return objects for a particular key.
|
void |
putObjectToReturn(java.lang.Object key,
java.lang.Object value)
Places an object into the list of return objects for a particular key
|
void |
verify()
Checks each the list for each key to verify that all no objects remain
in the list for that key.
|
public ReturnObjectBag(java.lang.String name)
name - Name used to describe an instance of ReturnObjectBag in error messagespublic void putObjectToReturn(java.lang.Object key,
java.lang.Object value)
key - the key against which the object will be storedvalue - the value to be added to the list for that keyReturnObjectList.addObjectToReturn(java.lang.Object)public void putObjectToReturn(int key,
java.lang.Object value)
key - the key against which the object will be storedvalue - the value to be added to the list for that keyReturnObjectList.addObjectToReturn(java.lang.Object)public void putObjectToReturn(java.lang.Object key,
int value)
key - the key against which the object will be storedvalue - the value to be added to the list for that keyReturnObjectList.addObjectToReturn(java.lang.Object),
getNextReturnInt(java.lang.Object)public void putObjectToReturn(java.lang.Object key,
boolean value)
key - the key against which the object will be storedvalue - the value to be added to the list for that keyReturnObjectList.addObjectToReturn(java.lang.Object),
getNextReturnBoolean(java.lang.Object)public void verify()
verify in interface VerifiableReturnObjectList.verify()public java.lang.Object getNextReturnObject(java.lang.Object key)
key - The key for which the next object should be returned.ReturnObjectList.nextReturnObject()public java.lang.Object getNextReturnObject(int key)
key - The key for which the next object should be returned.ReturnObjectList.nextReturnObject()public java.util.Hashtable getHashTable()
public int getNextReturnInt(java.lang.Object key)
public boolean getNextReturnBoolean(java.lang.Object key)