DthingApi
Public Member Functions | List of all members
java.util.Dictionary< K, V > Class Template Referenceabstract
Inheritance diagram for java.util.Dictionary< K, V >:
java.util.Hashtable< K, V >

Public Member Functions

 Dictionary ()
 
abstract Enumeration< V > elements ()
 
abstract V get (Object key)
 
abstract boolean isEmpty ()
 
abstract Enumeration< K > keys ()
 
abstract V put (K key, V value)
 
abstract V remove (Object key)
 
abstract int size ()
 

Detailed Description

Note: Do not use this class since it is obsolete. Please use the Map interface for new implementations.

Dictionary is an abstract class which is the superclass of all classes that associate keys with values, such as

Hashtable

.

See also
Hashtable
Since
1.0

Constructor & Destructor Documentation

◆ Dictionary()

java.util.Dictionary< K, V >.Dictionary ( )
inline

Constructs a new instance of this class.

Member Function Documentation

◆ elements()

abstract Enumeration<V> java.util.Dictionary< K, V >.elements ( )
abstract

Returns an enumeration on the elements of this dictionary.

Returns
an enumeration of the values of this dictionary.
See also
keys
size
Enumeration

◆ get()

abstract V java.util.Dictionary< K, V >.get ( Object  key)
abstract

Returns the value which is associated with

key

.

Parameters
keythe key of the value returned.
Returns
the value associated with
key
, or
null
if the specified key does not exist.
See also
put

◆ isEmpty()

abstract boolean java.util.Dictionary< K, V >.isEmpty ( )
abstract

Returns true if this dictionary has no key/value pairs.

Returns
true
if this dictionary has no key/value pairs,
false
otherwise.
See also
size

◆ keys()

abstract Enumeration<K> java.util.Dictionary< K, V >.keys ( )
abstract

Returns an enumeration on the keys of this dictionary.

Returns
an enumeration of the keys of this dictionary.
See also
elements
size
Enumeration

◆ put()

abstract V java.util.Dictionary< K, V >.put ( key,
value 
)
abstract

Associate

key

with

value

in this dictionary. If

key

exists in the dictionary before this call, the old value in the dictionary is replaced by

value

.

Parameters
keythe key to add.
valuethe value to add.
Returns
the old value previously associated with
key
or
null
if
key
is new to the dictionary.
See also
elements
get
keys

◆ remove()

abstract V java.util.Dictionary< K, V >.remove ( Object  key)
abstract

Removes the key/value pair with the specified

key

from this dictionary.

Parameters
keythe key to remove.
Returns
the associated value before the deletion or
null
if
key
was not known to this dictionary.
See also
get
put

◆ size()

abstract int java.util.Dictionary< K, V >.size ( )
abstract

Returns the number of key/value pairs in this dictionary.

Returns
the number of key/value pairs in this dictionary.
See also
elements
keys

The documentation for this class was generated from the following file: