java.util.Map.replace(key, value) The method Map.replace(key, value) associates the given value with the given key only when the map already contains such key.
Java.Util.Map.remove(key, value) The method Map.remove(Object key, Object value) removes entry for the key when its current mapping is equal to the given value.
java.util.Map.putIfAbsent(key, value) The method Map.putIfAbsent(key, value) associates the given key with the given value if there is no such association or the current value in map is null. Returns null or the previous value.
java.util.Map.merge(key, value, BiFunction) The method Map.merge(key, value, BiFunction) associates given value with the given key or calculates the new value from the old value and the given one using provided remapping function.
java.util.Map.getOrDefault(key, defaultValue) The method Map.getOrDefault(key, defaultValue) returns mapped value for the given key or defaultValue if there is no such mapping.
java.util.Map.forEach(BiConsumer) The method Map.forEach(BiConsumer) performs the given action for each entry of the map until all are processed or exception is thrown.
java.util.Map.computeIfPresent(Key, BiFunction) The method Map.computeIfPresent(Key, BiFunction) computes a new mapping for the given key and its current mapping value if the value exists and is not null.
java.util.Map.computeIfAbsent(key, Function) The method Map.computeIfAbsent(key, Function) computes the new value and associates it with the key if there is no mapping for the given key or the mapping is null. Returns the new value associated with the key.
java.util.Map.compute(Key, BiFunction) The method Map.compute(Key, BiFunction) returns the new value associated with the specified key. The value is computed using the given function.
The java.util.Currency class represents a currency. These are the main properties of the class: Currencies are identified by their ISO 4217 currency codes There is never more than one Currency instance for any given currency Get instance of the class using getInstance() methods the class is final and cannot be inherited. The class declaration is: …