public final class SortedTable
extends java.util.Dictionary
implements java.io.Serializable
Constructor and Description |
---|
SortedTable() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
elementAt(int index)
Returns the element at the specified index.
|
java.util.Enumeration |
elements()
Returns an enumeration of the values in this table.
|
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the key is mapped in this table.
|
java.util.Vector |
getElementVector()
Returns a Vector containing the elements in the SortedTable.
|
java.lang.Object |
getKey(int index)
Returns the key at the specified index.
|
boolean |
isEmpty()
Tests if this table is empty.
|
java.util.Enumeration |
keys()
Returns an enumeration of the keys in this table.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified key to the specified value in this table.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the key (and its corresponding value) from this table.
|
int |
size()
Returns the number of keys in this table.
|
public int size()
size
in class java.util.Dictionary
public boolean isEmpty()
isEmpty
in class java.util.Dictionary
public java.util.Enumeration keys()
keys
in class java.util.Dictionary
public java.util.Enumeration elements()
elements
in class java.util.Dictionary
public java.lang.Object get(java.lang.Object key)
get
in class java.util.Dictionary
key
- a key in this table.public java.lang.Object getKey(int index)
index
- the index to returnpublic java.lang.Object elementAt(int index)
index
- the index to returnpublic java.lang.Object put(java.lang.Object key, java.lang.Object value) throws java.lang.NullPointerException
put
in class java.util.Dictionary
key
- the keyvalue
- the valuejava.lang.NullPointerException
- if the key or value is null.public java.lang.Object remove(java.lang.Object key)
remove
in class java.util.Dictionary
key
- the key to remove.public java.util.Vector getElementVector()