- Type Parameters:
T
- The type of the body property.
- All Superinterfaces:
BodyAccessor<T>
,BodyAccessor.BodyMutator<T>
- Enclosing interface:
- BodyAccessor<T>
public static interface BodyAccessor.BodyProperty<T> extends BodyAccessor<T>, BodyAccessor.BodyMutator<T>
Provides a body property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.BodyAccessor
BodyAccessor.BodyBuilder<T,B extends BodyAccessor.BodyBuilder<T,B>>, BodyAccessor.BodyMutator<T>, BodyAccessor.BodyProperty<T>
-
Method Summary
Modifier and Type Method Description default T
letBody(T aBody)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofBodyAccessor.BodyMutator.setBody(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.BodyAccessor
getBody
Methods inherited from interface org.refcodes.mixin.BodyAccessor.BodyMutator
setBody
-
Method Details
-
letBody
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofBodyAccessor.BodyMutator.setBody(Object)
and returns the very same value (getter).- Parameters:
aBody
- The value to set (viaBodyAccessor.BodyMutator.setBody(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-