IT. Expert System.

Android Reference

Dictionary


java.util

Class Dictionary<K,V>

  • Direct Known Subclasses:
    Hashtable


    public abstract class Dictionary<K,V>
    extends Object
    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.

    Since:
    1.0
    See Also:
    Hashtable
    • Constructor Summary

      Constructors
      Constructor and Description
      Dictionary()
      Constructs a new instance of this class.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      abstract Enumeration<V> elements()
      Returns an enumeration on the elements of this dictionary.
      abstract V get(Object key)
      Returns the value which is associated with key.
      abstract boolean isEmpty()
      Returns true if this dictionary has no key/value pairs.
      abstract Enumeration<K> keys()
      Returns an enumeration on the keys of this dictionary.
      abstract V put(K key, V value)
      Associate key with value in this dictionary.
      abstract V remove(Object key)
      Removes the key/value pair with the specified key from this dictionary.
      abstract int size()
      Returns the number of key/value pairs in this dictionary.
    • Constructor Detail

      • Dictionary

        public Dictionary()
        Constructs a new instance of this class.
    • Method Detail

      • elements

        public abstract Enumeration<V> elements()
        Returns an enumeration on the elements of this dictionary.
        Returns:
        an enumeration of the values of this dictionary.
        See Also:
        keys(), size(), Enumeration
      • get

        public abstract V get(Object key)
        Returns the value which is associated with key.
        Parameters:
        key - the key of the value returned.
        Returns:
        the value associated with key, or null if the specified key does not exist.
        See Also:
        put(K, V)
      • isEmpty

        public abstract boolean isEmpty()
        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()
      • put

        public abstract V put(K key,
            V value)
        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:
        key - the key to add.
        value - the value to add.
        Returns:
        the old value previously associated with key or null if key is new to the dictionary.
        See Also:
        elements(), get(java.lang.Object), keys()
      • remove

        public abstract V remove(Object key)
        Removes the key/value pair with the specified key from this dictionary.
        Parameters:
        key - the key to remove.
        Returns:
        the associated value before the deletion or null if key was not known to this dictionary.
        See Also:
        get(java.lang.Object), put(K, V)
      • size

        public abstract int size()
        Returns the number of key/value pairs in this dictionary.
        Returns:
        the number of key/value pairs in this dictionary.
        See Also:
        elements(), keys()


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 413 / 248377618. Delta: 0.01932 с