- All Superinterfaces:
EmptyAccessor
,EmptyAccessor.EmptyMutator
- Enclosing interface:
- EmptyAccessor
public static interface EmptyAccessor.EmptyProperty
extends EmptyAccessor, EmptyAccessor.EmptyMutator
Provides a empty property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.EmptyAccessor
EmptyAccessor.EmptyMutator, EmptyAccessor.EmptyProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
letEmpty
(boolean isEmpty) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given boolean (setter) as ofEmptyAccessor.EmptyMutator.setEmpty(boolean)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.EmptyAccessor
isEmpty
Methods inherited from interface org.refcodes.mixin.EmptyAccessor.EmptyMutator
setEmpty
-
Method Details
-
letEmpty
default boolean letEmpty(boolean isEmpty) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given boolean (setter) as ofEmptyAccessor.EmptyMutator.setEmpty(boolean)
and returns the very same value (getter).- Parameters:
isEmpty
- The boolean to set (viaEmptyAccessor.EmptyMutator.setEmpty(boolean)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-