- Type Parameters:
S
- The type of the state property.
- All Superinterfaces:
StatusAccessor<S>
,StatusAccessor.StatusMutator<S>
- Enclosing interface:
- StatusAccessor<S>
public static interface StatusAccessor.StatusProperty<S> extends StatusAccessor<S>, StatusAccessor.StatusMutator<S>
Extends the
StatusAccessor
with a setter method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.StatusAccessor
StatusAccessor.StatusBuilder<S,B extends StatusAccessor.StatusBuilder<S,B>>, StatusAccessor.StatusMutator<S>, StatusAccessor.StatusProperty<S>
-
Method Summary
Modifier and Type Method Description default S
letStatus(S aStatus)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofStatusAccessor.StatusMutator.setStatus(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.StatusAccessor
getStatus
Methods inherited from interface org.refcodes.mixin.StatusAccessor.StatusMutator
setStatus
-
Method Details
-
letStatus
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofStatusAccessor.StatusMutator.setStatus(Object)
and returns the very same value (getter).- Parameters:
aStatus
- The value to set (viaStatusAccessor.StatusMutator.setStatus(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-