Interface ModeAccessor.ModeProperty<T>

Type Parameters:
T - The type of the mode to be accessed.
All Superinterfaces:
ModeAccessor<T>, ModeAccessor.ModeMutator<T>
Enclosing interface:
ModeAccessor<T>

public static interface ModeAccessor.ModeProperty<T>
extends ModeAccessor<T>, ModeAccessor.ModeMutator<T>
Provides a mode property.
  • Method Details

    • letMode

      default T letMode​(T aMode)
      This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as of ModeAccessor.ModeMutator.setMode(Object) and returns the very same value (getter).
      Parameters:
      aMode - The value to set (via ModeAccessor.ModeMutator.setMode(Object)).
      Returns:
      Returns the value passed for it to be used in conclusive processing steps.