public class MultiTable
extends java.lang.Object
Constructor and Description |
---|
MultiTable()
Creates a new MultiTable.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this hashtable so that it contains no keys.
|
boolean |
contains(java.lang.Object value)
Tests if some key maps into the specified value in this table.
|
boolean |
containsKey(java.lang.Object key)
Tests if the specified object is a key in this table.
|
java.util.Enumeration |
elements()
Returns an enumeration of the values in this table.
|
java.util.Vector |
get(java.lang.Object key)
Returns the set of values to which the specified key is mapped in this table.
|
boolean |
isEmpty()
Tests if this hashtable maps no keys to values.
|
java.util.Enumeration |
keys()
Returns an enumeration of the keys in this table.
|
void |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified key to the specified value in this table.
|
void |
remove(java.lang.Object key)
Removes the specified key (and their corresponding values) from this table.
|
void |
remove(java.lang.Object key,
java.lang.Object value)
Removes a given mapping key-->value from this table.
|
int |
size()
Returns the number of keys in this table.
|
java.lang.String |
toString()
Returns a rather long string representation of this table.
|
public void clear()
public boolean contains(java.lang.Object value)
public boolean containsKey(java.lang.Object key)
public java.util.Enumeration elements()
public java.util.Vector get(java.lang.Object key)
public boolean isEmpty()
public java.util.Enumeration keys()
public void put(java.lang.Object key, java.lang.Object value)
public void remove(java.lang.Object key)
public void remove(java.lang.Object key, java.lang.Object value)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object