Method Summary |
|
public Object | get(String name) Returns the Object associated with the given name.
Parameters: name - The name to search for. |
public Object | get(int index) Returns the Object at the given index.
Parameters: index - The index of the Object to return. |
public String | getNameByObject(Object obj) Returns the name associated with the given Object.
Parameters: obj - The Object to search for. |
public Vector | getNames() Returns a Vector of names. |
public Vector | getObjects() Returns a Vector of Objects. |
public int | indexOf(String name) Returns the index of the Object which has been mapped (associated) with
the given name.
Parameters: name - The name to get the index of. |
public void | put(String name, Object obj) Maps (associates) an Object with a name. |
public Object | remove(int index) Removes and returns the Object located at the given index.
Parameters: index - The index of the Object to remove. |
public Object | remove(String name) Removes and returns the Object associated with the given name.
Parameters: name - The name of the Object to remove. |
public int | size() Returns the number of Object associations currently in this named map. |