Interface MultiItemSelector.MultiItemSelectorContext<T,I extends Nameable & Matchable & Itemable<T>>
- All Superinterfaces:
AbstractSelectorComponent.SelectorComponentContext<T,
,I, MultiItemSelector.MultiItemSelectorContext<T, I>> ComponentContext<MultiItemSelector.MultiItemSelectorContext<T,
I>>
- Enclosing class:
- MultiItemSelector<T,
I extends Nameable & Matchable & Enableable & Selectable & Itemable<T>>
public static interface MultiItemSelector.MultiItemSelectorContext<T,I extends Nameable & Matchable & Itemable<T>>
extends AbstractSelectorComponent.SelectorComponentContext<T,I,MultiItemSelector.MultiItemSelectorContext<T,I>>
Context
MultiItemSelector
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
I extends Nameable & Matchable & Itemable<T>>
MultiItemSelector.MultiItemSelectorContext<T,I> empty()
Creates an emptyMultiItemSelector.MultiItemSelectorContext
.static <T,
I extends Nameable & Matchable & Itemable<T>>
MultiItemSelector.MultiItemSelectorContext<T,I> Creates anMultiItemSelector.MultiItemSelectorContext
.Gets a values.Methods inherited from interface org.springframework.shell.component.support.AbstractSelectorComponent.SelectorComponentContext
getCursorRow, getInput, getItems, getItemStates, getItemStateView, getName, getResultItems, isResult, setCursorRow, setInput, setItems, setItemStates, setItemStateView, setName, setResultItems
Methods inherited from interface org.springframework.shell.component.context.ComponentContext
containsKey, get, get, getTerminalWidth, put, setTerminalWidth, stream, toTemplateModel
-
Method Details
-
getValues
Gets a values.- Returns:
- a values
-
empty
static <T,I extends Nameable & Matchable & Itemable<T>> MultiItemSelector.MultiItemSelectorContext<T,I> empty()Creates an emptyMultiItemSelector.MultiItemSelectorContext
.- Type Parameters:
T
- the type of context- Returns:
- empty context
-
empty
static <T,I extends Nameable & Matchable & Itemable<T>> MultiItemSelector.MultiItemSelectorContext<T,I> empty(Function<T, String> itemMapper) Creates anMultiItemSelector.MultiItemSelectorContext
.- Returns:
- context
-