Module org.refcodes.mixin
Package org.refcodes.mixin
Interface ResponseAccessor.ResponseProperty<RES>
- Type Parameters:
RES
- The type of the response property.
- All Superinterfaces:
ResponseAccessor<RES>
,ResponseAccessor.ResponseMutator<RES>
- Enclosing interface:
- ResponseAccessor<RES>
public static interface ResponseAccessor.ResponseProperty<RES>
extends ResponseAccessor<RES>, ResponseAccessor.ResponseMutator<RES>
Extends the
ResponseAccessor
with a setter method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ResponseAccessor
ResponseAccessor.ResponseBuilder<RES,
B extends ResponseAccessor.ResponseBuilder<RES, B>>, ResponseAccessor.ResponseMutator<RES>, ResponseAccessor.ResponseProperty<RES> -
Method Summary
Modifier and TypeMethodDescriptiondefault RES
letResponse
(RES aResponse) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofResponseAccessor.ResponseMutator.setResponse(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.ResponseAccessor
getResponse
Methods inherited from interface org.refcodes.mixin.ResponseAccessor.ResponseMutator
setResponse
-
Method Details
-
letResponse
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofResponseAccessor.ResponseMutator.setResponse(Object)
and returns the very same value (getter).- Parameters:
aResponse
- The value to set (viaResponseAccessor.ResponseMutator.setResponse(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-