- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ModeAccessor
ModeAccessor.ModeMutator<T>, ModeAccessor.ModeProperty<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofModeAccessor.ModeMutator.setMode(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.ModeAccessor
getMode
Methods inherited from interface org.refcodes.mixin.ModeAccessor.ModeMutator
setMode
-
Method Details
-
letMode
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofModeAccessor.ModeMutator.setMode(Object)
and returns the very same value (getter).- Parameters:
aMode
- The value to set (viaModeAccessor.ModeMutator.setMode(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-