- Type Parameters:
T
- The type of the code property.
- All Superinterfaces:
CodeAccessor<T>
,CodeAccessor.CodeMutator<T>
- Enclosing interface:
- CodeAccessor<T>
public static interface CodeAccessor.CodeProperty<T>
extends CodeAccessor<T>, CodeAccessor.CodeMutator<T>
Extends the
CodeAccessor
with a setter method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.CodeAccessor
CodeAccessor.CodeBuilder<T,
B extends CodeAccessor.CodeBuilder<T, B>>, CodeAccessor.CodeMutator<T>, CodeAccessor.CodeProperty<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 ofCodeAccessor.CodeMutator.setCode(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.CodeAccessor
getCode
Methods inherited from interface org.refcodes.mixin.CodeAccessor.CodeMutator
setCode
-
Method Details
-
letCode
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofCodeAccessor.CodeMutator.setCode(Object)
and returns the very same value (getter).- Parameters:
aCode
- The value to set (viaCodeAccessor.CodeMutator.setCode(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-