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.
Continue reading Java Util Map replace(key, value)java-util
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.
Continue reading Java Util Map remove(key, 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.
Continue reading Java Util Map.putIfAbsent(key, 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.
Continue reading Java Util Map merge(key, value, BiFunction)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.
Continue reading Java Util Map getOrDefaultjava.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.
Continue reading Java Util Map forEach(BiConsumer)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.
Continue reading Java Util Map computeIfPresent(Key,BiFunction)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.
Continue reading Java Util Map computeIfAbsent(key,Function)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.
Continue reading Java Util Map compute(Key, BiFunction)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: …
Continue reading Java Util Currency Tutorial