public class LinkedHashtable
extends java.util.Hashtable
This is not a general purpose class but has been written because
the protected members of Copy
prohibited later revisions from using a more predictable
collection.
Methods are synchronized to keep Hashtable's contract.
Constructor and Description |
---|
LinkedHashtable() |
LinkedHashtable(int initialCapacity) |
LinkedHashtable(int initialCapacity,
float loadFactor) |
LinkedHashtable(java.util.Map m) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
contains(java.lang.Object value) |
boolean |
containsKey(java.lang.Object value) |
boolean |
containsValue(java.lang.Object value) |
java.util.Enumeration |
elements() |
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object k) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Enumeration |
keys() |
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object k,
java.lang.Object v) |
void |
putAll(java.util.Map m) |
java.lang.Object |
remove(java.lang.Object k) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection |
values() |
public LinkedHashtable()
public LinkedHashtable(int initialCapacity)
public LinkedHashtable(int initialCapacity, float loadFactor)
public LinkedHashtable(java.util.Map m)
public void clear()
clear
in interface java.util.Map
clear
in class java.util.Hashtable
public boolean contains(java.lang.Object value)
contains
in class java.util.Hashtable
public boolean containsKey(java.lang.Object value)
containsKey
in interface java.util.Map
containsKey
in class java.util.Hashtable
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map
containsValue
in class java.util.Hashtable
public java.util.Enumeration elements()
elements
in class java.util.Hashtable
public java.util.Set entrySet()
entrySet
in interface java.util.Map
entrySet
in class java.util.Hashtable
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map
equals
in class java.util.Hashtable
public java.lang.Object get(java.lang.Object k)
get
in interface java.util.Map
get
in class java.util.Hashtable
public int hashCode()
hashCode
in interface java.util.Map
hashCode
in class java.util.Hashtable
public boolean isEmpty()
isEmpty
in interface java.util.Map
isEmpty
in class java.util.Hashtable
public java.util.Enumeration keys()
keys
in class java.util.Hashtable
public java.util.Set keySet()
keySet
in interface java.util.Map
keySet
in class java.util.Hashtable
public java.lang.Object put(java.lang.Object k, java.lang.Object v)
put
in interface java.util.Map
put
in class java.util.Hashtable
public void putAll(java.util.Map m)
putAll
in interface java.util.Map
putAll
in class java.util.Hashtable
public java.lang.Object remove(java.lang.Object k)
remove
in interface java.util.Map
remove
in class java.util.Hashtable
public int size()
size
in interface java.util.Map
size
in class java.util.Hashtable
public java.lang.String toString()
toString
in class java.util.Hashtable
public java.util.Collection values()
values
in interface java.util.Map
values
in class java.util.Hashtable