Interface NonNullMapAccessor<T>

Type Parameters:
T - the value type
All Superinterfaces:
MapAccessor<T>
All Known Subinterfaces:
NonNullKey<T>
All Known Implementing Classes:
NonNullListKey, NonNullObjectKey

public interface NonNullMapAccessor<T> extends MapAccessor<T>
NonNullMapAccessor.
Author:
Werner Randelshofer
  • Field Details

  • Method Details

    • getNonNull

      default T getNonNull(Map<? super Key<?>,Object> a)
      Gets the value of the attribute denoted by this accessor from a Map.
      Parameters:
      a - A Map.
      Returns:
      The value of the attribute.
    • getNonNull

      default T getNonNull(ReadOnlyMap<? super Key<?>,Object> a)
      Gets the value of the attribute denoted by this accessor from a Map.
      Parameters:
      a - A Map.
      Returns:
      The value of the attribute.
    • putNonNull

      default T putNonNull(Map<? super Key<?>,Object> a, T value)
      Puts the value of the attribute denoted by this accessor from a Map.
      Parameters:
      a - A map.
      value - The new value.
      Returns:
      The old value.
    • getDefaultValueNonNull

      default T getDefaultValueNonNull()