JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.793

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
  • Detail:
  • Field |
  • Constr |
  • Method
com.amazonaws.util

Class ImmutableMapParameter<K,V>

  • Type Parameters:
    K - Class of the key for the map.
    V - Class of the value for the map.
    All Implemented Interfaces:
    Map<K,V>


    public class ImmutableMapParameter<K,V>
    extends Object
    implements Map<K,V>
    An immutable map that could be built by convenient constructors.

    Example of using map Builder:

     {
     @code
     Map<String, AttributeValue> item = new ImmutableMapParameter.Builder<String, AttributeValue>()
     .put("one", new AttributeValue("1"))
     .put("two", new AttributeValue("2"))
     .put("three", new AttributeValue("3")).build();
     }
     
    For small immutable maps (up to five entries), the ImmutableMapParamter.of() methods are preferred:
     
     Map<String, AttributeValue> item =
     ImmutableMapParameter
     .of("one", new AttributeValue("1"), 
     "two", new AttributeValue("2"),
     "three", new AttributeValue("3"), 
     
     
    • Method Detail

      • of

        public static <K,V> ImmutableMapParameter<K,V> of(K k0,
         V v0)
        Returns an ImmutableMapParameter instance containing a single entry.
        Parameters:
        k0 - Key of the single entry.
        v0 - Value of the single entry.
      • of

        public static <K,V> ImmutableMapParameter<K,V> of(K k0,
         V v0,
         K k1,
         V v1)
        Returns an ImmutableMapParameter instance containing two entries.
        Parameters:
        k0 - Key of the first entry.
        v0 - Value of the first entry.
        k1 - Key of the second entry.
        v1 - Value of the second entry.
      • of

        public static <K,V> ImmutableMapParameter<K,V> of(K k0,
         V v0,
         K k1,
         V v1,
         K k2,
         V v2)
        Returns an ImmutableMapParameter instance containing three entries.
        Parameters:
        k0 - Key of the first entry.
        v0 - Value of the first entry.
        k1 - Key of the second entry.
        v1 - Value of the second entry.
        k2 - Key of the third entry.
        v2 - Value of the third entry.
      • of

        public static <K,V> ImmutableMapParameter<K,V> of(K k0,
         V v0,
         K k1,
         V v1,
         K k2,
         V v2,
         K k3,
         V v3)
        Returns an ImmutableMapParameter instance containing four entries.
        Parameters:
        k0 - Key of the first entry.
        v0 - Value of the first entry.
        k1 - Key of the second entry.
        v1 - Value of the second entry.
        k2 - Key of the third entry.
        v2 - Value of the third entry.
        k3 - Key of the fourth entry.
        v3 - Value of the fourth entry.
      • of

        public static <K,V> ImmutableMapParameter<K,V> of(K k0,
         V v0,
         K k1,
         V v1,
         K k2,
         V v2,
         K k3,
         V v3,
         K k4,
         V v4)
        Returns an ImmutableMapParameter instance containing five entries.
        Parameters:
        k0 - Key of the first entry.
        v0 - Value of the first entry.
        k1 - Key of the second entry.
        v1 - Value of the second entry.
        k2 - Key of the third entry.
        v2 - Value of the third entry.
        k3 - Key of the fourth entry.
        v3 - Value of the fourth entry.
        k4 - Key of the fifth entry.
        v4 - Value of the fifth entry.
      • containsKey

        public boolean containsKey(Object key)
        Inherited methods
        Specified by:
        containsKey in interface Map<K,V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<K,V>
      • size

        public int size()
        Specified by:
        size in interface Map<K,V>
      • clear

        public void clear()
        Unsupported methods
        Specified by:
        clear in interface Map<K,V>
      • put

        public V put(K key,
         V value)
        Specified by:
        put in interface Map<K,V>
      • putAll

        public void putAll(Map<? extends K,? extends V> map)
        Specified by:
        putAll in interface Map<K,V>
Skip navigation links
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /