Interface NonNullMap<K,V>

All Superinterfaces:
Map<K,V>, NonNullKeyMap<K,V>, NonNullValueMap<K,V>
All Known Implementing Classes:
NonNullEnumMap, NonNullMap.MyProxy

public interface NonNullMap<K,V> extends Map<K,V>, NonNullKeyMap<K,V>, NonNullValueMap<K,V>
  • Method Details

    • newInstance

      static <K1, V1> NonNullMap<K1,V1> newInstance()
    • newInstance

      static <K1, V1> NonNullMap<K1,V1> newInstance(Supplier<Map<K1,V1>> supplier)
      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 in HashMap::new, not to a free lambda expression.
    • copyOf

      static <K1, V1> NonNullMap<K1,V1> copyOf(Map<K1,V1> proto)
    • asSorted

      SortedMap<K,V> asSorted()
      Specified by:
      asSorted in interface NonNullKeyMap<K,V>
      Specified by:
      asSorted in interface NonNullValueMap<K,V>