|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.util.Dictionary
oracle.adfnmc.java.util.Hashtable
public class Hashtable
Hashtable associates keys with values. Keys and values cannot be null. The size of the Hashtable is the number of key/value pairs it contains. The capacity is the number of key/value pairs the Hashtable can hold. The load factor is a float value which determines how full the Hashtable gets before expanding the capacity. If the load factor of the Hashtable is exceeded, the capacity is doubled.
Enumeration
,
Serializable
,
Object.equals(java.lang.Object)
,
Object.hashCode()
Constructor Summary | |
---|---|
Hashtable()
Constructs a new Hashtable using the default capacity and load factor. |
|
Hashtable(java.util.Hashtable map)
|
|
Hashtable(int capacity)
Constructs a new Hashtable using the specified capacity and the default load factor. |
|
Hashtable(int capacity,
float loadFactor)
Constructs a new Hashtable using the specified capacity and load factor. |
|
Hashtable(Map map)
Constructs a new instance of Hashtable containing the mappings from the specified Map. |
Method Summary | |
---|---|
void |
clear()
Removes all key/value pairs from this Hashtable, leaving the size zero and the capacity unchanged. |
java.lang.Object |
clone()
Answers a new Hashtable with the same key/value pairs, capacity and load factor. |
boolean |
contains(java.lang.Object value)
Answers if this Hashtable contains the specified object as the value of at least one of the key/value pairs. |
boolean |
containsKey(java.lang.Object key)
Answers if this Hashtable contains the specified object as a key of one of the key/value pairs. |
boolean |
containsValue(java.lang.Object value)
Searches this Hashtable for the specified value. |
java.util.Enumeration |
elements()
Answers an Enumeration on the values of this Hashtable. |
Set |
entrySet()
Answers a Set of the mappings contained in this Hashtable. |
boolean |
equals(java.lang.Object object)
Compares the specified object to this Hashtable and answer if they are equal. |
java.lang.Object |
get(java.lang.Object key)
Answers the value associated with the specified key in this Hashtable. |
int |
hashCode()
Answers an integer hash code for the receiver. |
boolean |
isEmpty()
Answers if this Hashtable has no key/value pairs, a size of zero. |
java.util.Enumeration |
keys()
Answers an Enumeration on the keys of this Hashtable. |
Set |
keySet()
Answers a Set of the keys contained in this Hashtable. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Associate the specified value with the specified key in this Hashtable. |
void |
putAll(Map map)
Copies every mapping in the specified Map to this Hashtable. |
protected void |
rehash()
Increases the capacity of this Hashtable. |
java.lang.Object |
remove(java.lang.Object key)
Remove the key/value pair with the specified key from this Hashtable. |
int |
size()
Answers the number of key/value pairs in this Hashtable. |
java.lang.String |
toString()
Answers the string representation of this Hashtable. |
Collection |
values()
Answers a Collection of the values contained in this Hashtable. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Hashtable()
public Hashtable(int capacity)
capacity
- the initial capacitypublic Hashtable(int capacity, float loadFactor)
capacity
- the initial capacityloadFactor
- the initial load factorpublic Hashtable(Map map)
map
- the mappings to addpublic Hashtable(java.util.Hashtable map)
Method Detail |
---|
public void clear()
clear
in interface Map
isEmpty()
,
size()
public java.lang.Object clone()
Cloneable
public boolean contains(java.lang.Object value)
value
- the object to look for as a value in this Hashtable
containsKey(java.lang.Object)
,
Object.equals(java.lang.Object)
public boolean containsKey(java.lang.Object key)
containsKey
in interface Map
key
- the object to look for as a key in this Hashtable
contains(java.lang.Object)
,
Object.equals(java.lang.Object)
public boolean containsValue(java.lang.Object value)
containsValue
in interface Map
value
- the object to search for
value
is a value of this Hashtable, false otherwisepublic java.util.Enumeration elements()
elements
in class Dictionary
keys()
,
size()
,
Enumeration
public Set entrySet()
entrySet
in interface Map
public boolean equals(java.lang.Object object)
equals
in interface Map
equals
in class java.lang.Object
object
- the object to compare with this object
hashCode()
public java.lang.Object get(java.lang.Object key)
get
in interface Map
get
in class Dictionary
key
- the key of the value returned
put(java.lang.Object, java.lang.Object)
public int hashCode()
hashCode
in interface Map
hashCode
in class java.lang.Object
equals(java.lang.Object)
public boolean isEmpty()
isEmpty
in interface Map
isEmpty
in class Dictionary
size()
public java.util.Enumeration keys()
keys
in class Dictionary
elements()
,
size()
,
Enumeration
public Set keySet()
keySet
in interface Map
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface Map
put
in class Dictionary
key
- the key to addvalue
- the value to add
elements()
,
get(java.lang.Object)
,
keys()
,
Object.equals(java.lang.Object)
public void putAll(Map map)
putAll
in interface Map
map
- the Map to copy mappings fromprotected void rehash()
public java.lang.Object remove(java.lang.Object key)
remove
in interface Map
remove
in class Dictionary
key
- the key to remove
get(java.lang.Object)
,
put(java.lang.Object, java.lang.Object)
public int size()
size
in interface Map
size
in class Dictionary
elements()
,
keys()
public java.lang.String toString()
toString
in class java.lang.Object
public Collection values()
values
in interface Map
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |