ImmutableMap (AWS SDK for Java

May 2024 ยท 3 minute read
ImmutableMap (AWS SDK for Java - 2.25.21) 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 final class ImmutableMap<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, AttibuteValue> item = new ImmutableMap.Builder<String, AttibuteValue>() .put("one", new AttibuteValue("1")) .put("two", new AttibuteValue("2")) .put("three", new AttibuteValue("3")).build(); } 
For small immutable maps (up to five entries), the ImmutableMapParamter.of() methods are preferred:
  Map<String, AttibuteValue> item = ImmutableMap .of("one", new AttributeValue("1"), "two", new AttributeValue("2"), "three", new AttributeValue("3"),  

ncG1vNJzZmirlKB7ornAs6anmaeoe6S7zGihmq6RZK6xtY6lmK2do6l8tLvFra6aqpVkrq6t2ailaJmnqMClt46uq6Kko2SWrrnUrZibpJWCrrF6x62kpQ%3D%3D