Package eu.bandm.tools.util.nonnull
Interface NonNullMap<K,V>
- All Superinterfaces:
Map<K,,V> NonNullKeyMap<K,,V> NonNullValueMap<K,V>
- All Known Implementing Classes:
NonNullEnumMap,NonNullMap.MyProxy
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionasSorted()static <K1,V1> NonNullMap <K1, V1> static <K1,V1> NonNullMap <K1, V1> static <K1,V1> NonNullMap <K1, V1> newInstance(Supplier<Map<K1, V1>> supplier) Create a new instance and ask the supplier argument for the peer.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
newInstance
-
newInstance
Create a new instance and ask the supplier argument for the peer. This supplier should deliver a fresh and empty instance, and no further reference to this result should be kept anywhere, because by this the non-null contract can be broken. The upplier argument is thus meant to be set to a constructor, as inHashMap::new, not to a free lambda expression. -
copyOf
-
asSorted
- Specified by:
asSortedin interfaceNonNullKeyMap<K,V> - Specified by:
asSortedin interfaceNonNullValueMap<K,V>
-