Module org.refcodes.mixin
Package org.refcodes.mixin
Interface ResultAccessor.ResultProperty<RES,EXC extends Exception>
- Type Parameters:
RES
- The type of the result property.EXC
- The exception thrown in case no result is available. UseRuntimeException
to prevent forcing a try/catch block.
- All Superinterfaces:
ResultAccessor<RES,
,EXC> ResultAccessor.ResultMutator<RES>
- Enclosing interface:
- ResultAccessor<RES,
EXC extends Exception>
public static interface ResultAccessor.ResultProperty<RES,EXC extends Exception>
extends ResultAccessor<RES,EXC>, ResultAccessor.ResultMutator<RES>
Extends the
ResultAccessor
with a setter method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ResultAccessor
ResultAccessor.ResultBuilder<RES,
B extends ResultAccessor.ResultBuilder<RES, B>>, ResultAccessor.ResultMutator<RES>, ResultAccessor.ResultProperty<RES, EXC extends Exception> -
Method Summary
Modifier and TypeMethodDescriptiondefault RES
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofResultAccessor.ResultMutator.setResult(Object)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.ResultAccessor
getResult, hasResult, waitForResult
Methods inherited from interface org.refcodes.mixin.ResultAccessor.ResultMutator
setResult
-
Method Details
-
letResult
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given value (setter) as ofResultAccessor.ResultMutator.setResult(Object)
and returns the very same value (getter).- Parameters:
aResult
- The value to set (viaResultAccessor.ResultMutator.setResult(Object)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-