IT. Expert System.

Android Reference

Map


java.util

Interface Map<K,V>

    • Nested Class Summary

      Nested Classes
      Modifier and Type Interface and Description
      static interface Map.Entry<K,V>
      Map.Entry is a key/value mapping contained in a Map.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void clear()
      Removes all elements from this Map, leaving it empty.
      boolean containsKey(Object key)
      Returns whether this Map contains the specified key.
      boolean containsValue(Object value)
      Returns whether this Map contains the specified value.
      Set<Map.Entry<K,V>> entrySet()
      Returns a Set containing all of the mappings in this Map.
      boolean equals(Object object)
      Compares the argument to the receiver, and returns true if the specified object is a Map and both Maps contain the same mappings.
      V get(Object key)
      Returns the value of the mapping with the specified key.
      int hashCode()
      Returns an integer hash code for the receiver.
      boolean isEmpty()
      Returns whether this map is empty.
      Set<K> keySet()
      Returns a set of the keys contained in this Map.
      V put(K key, V value)
      Maps the specified key to the specified value.
      void putAll(Map<? extends K,? extends V> map)
      Copies every mapping in the specified Map to this Map.
      V remove(Object key)
      Removes a mapping with the specified key from this Map.
      int size()
      Returns the number of mappings in this Map.
      Collection<V> values()
      Returns a Collection of the values contained in this Map.
    • Method Detail

      • containsKey

        boolean containsKey(Object key)
        Returns whether this Map contains the specified key.
        Parameters:
        key - the key to search for.
        Returns:
        true if this map contains the specified key, false otherwise.
      • containsValue

        boolean containsValue(Object value)
        Returns whether this Map contains the specified value.
        Parameters:
        value - the value to search for.
        Returns:
        true if this map contains the specified value, false otherwise.
      • entrySet

        Set<Map.Entry<K,V>> entrySet()
        Returns a Set containing all of the mappings in this Map. Each mapping is an instance of Map.Entry. As the Set is backed by this Map, changes in one will be reflected in the other.
        Returns:
        a set of the mappings
      • equals

        boolean equals(Object object)
        Compares the argument to the receiver, and returns true if the specified object is a Map and both Maps contain the same mappings.
        Overrides:
        equals in class Object
        Parameters:
        object - the Object to compare with this Object.
        Returns:
        boolean true if the Object is the same as this Object false if it is different from this Object.
        See Also:
        hashCode(), entrySet()
      • get

        V get(Object key)
        Returns the value of the mapping with the specified key.
        Parameters:
        key - the key.
        Returns:
        the value of the mapping with the specified key, or null if no mapping for the specified key is found.
      • hashCode

        int hashCode()
        Returns an integer hash code for the receiver. Objects which are equal return the same value for this method.
        Overrides:
        hashCode in class Object
        Returns:
        the receiver's hash.
        See Also:
        equals(Object)
      • isEmpty

        boolean isEmpty()
        Returns whether this map is empty.
        Returns:
        true if this map has no elements, false otherwise.
        See Also:
        size()
      • keySet

        Set<K> keySet()
        Returns a set of the keys contained in this Map. The Set is backed by this Map so changes to one are reflected by the other. The Set does not support adding.
        Returns:
        a set of the keys.
      • put

        V put(K key,
            V value)
        Maps the specified key to the specified value.
        Parameters:
        key - the key.
        value - the value.
        Returns:
        the value of any previous mapping with the specified key or null if there was no mapping.
        Throws:
        UnsupportedOperationException - if adding to this Map is not supported.
        ClassCastException - if the class of the key or value is inappropriate for this Map.
        IllegalArgumentException - if the key or value cannot be added to this Map.
        NullPointerException - if the key or value is null and this Map does not support null keys or values.
      • putAll

        void putAll(Map<? extends K,? extends V> map)
        Copies every mapping in the specified Map to this Map.
        Parameters:
        map - the Map to copy mappings from.
        Throws:
        UnsupportedOperationException - if adding to this Map is not supported.
        ClassCastException - if the class of a key or a value of the specified Map is inappropriate for this Map.
        IllegalArgumentException - if a key or value cannot be added to this Map.
        NullPointerException - if a key or value is null and this Map does not support null keys or values.
      • remove

        V remove(Object key)
        Removes a mapping with the specified key from this Map.
        Parameters:
        key - the key of the mapping to remove.
        Returns:
        the value of the removed mapping or null if no mapping for the specified key was found.
        Throws:
        UnsupportedOperationException - if removing from this Map is not supported.
      • size

        int size()
        Returns the number of mappings in this Map.
        Returns:
        the number of mappings in this Map.


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: 804 / 96446722. Delta: 0.03389 с