Interface NonNullMapAccessor<T>

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

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

  • Method Details

    • getNonNull

      default @NonNull T getNonNull(@NonNull 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 @NonNull T getNonNull(@NonNull 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 @NonNull T putNonNull(@NonNull Map<? super Key<?>,Object> a, @NonNull 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 @NonNull T getDefaultValueNonNull()