- All Superinterfaces:
CliContextAccessor
,CliContextAccessor.CliContextMutator
- Enclosing interface:
- CliContextAccessor
public static interface CliContextAccessor.CliContextProperty
extends CliContextAccessor, CliContextAccessor.CliContextMutator
Provides a
CliContext
property.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.cli.CliContextAccessor
CliContextAccessor.CliContextBuilder<B extends CliContextAccessor.CliContextBuilder<B>>, CliContextAccessor.CliContextMutator, CliContextAccessor.CliContextProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault CliContext
letCliContext
(CliContext aCliContext) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenCliContext
(setter) as ofCliContextAccessor.CliContextMutator.setCliContext(CliContext)
and returns the very same value (getter).Methods inherited from interface org.refcodes.cli.CliContextAccessor
getCliContext
Methods inherited from interface org.refcodes.cli.CliContextAccessor.CliContextMutator
setCliContext
-
Method Details
-
letCliContext
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenCliContext
(setter) as ofCliContextAccessor.CliContextMutator.setCliContext(CliContext)
and returns the very same value (getter).- Parameters:
aCliContext
- TheCliContext
to set (viaCliContextAccessor.CliContextMutator.setCliContext(CliContext)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-