- Type Parameters:
REQ
- The type of the request property.
- All Superinterfaces:
RequestAccessor<REQ>
,RequestAccessor.RequestMutator<REQ>
- Enclosing interface:
- RequestAccessor<REQ>
public static interface RequestAccessor.RequestProperty<REQ>
extends RequestAccessor<REQ>, RequestAccessor.RequestMutator<REQ>
Extends the
RequestAccessor
with a setter method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.RequestAccessor
RequestAccessor.RequestBuilder<REQ,
B extends RequestAccessor.RequestBuilder<REQ, B>>, RequestAccessor.RequestMutator<REQ>, RequestAccessor.RequestProperty<REQ> -
Method Summary
Modifier and TypeMethodDescriptiondefault REQ
letRequest
(REQ aRequest) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofRequestAccessor.RequestMutator.setRequest(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.RequestAccessor
getRequest
Methods inherited from interface org.refcodes.mixin.RequestAccessor.RequestMutator
setRequest
-
Method Details
-
letRequest
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofRequestAccessor.RequestMutator.setRequest(Object)
and returns the very same value (getter).- Parameters:
aRequest
- The value to set (viaRequestAccessor.RequestMutator.setRequest(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-