Interface SingleItemSelector.SingleItemSelectorContext<T,I extends Nameable & Matchable & Itemable<T>>
- All Superinterfaces:
AbstractSelectorComponent.SelectorComponentContext<T,
,I, SingleItemSelector.SingleItemSelectorContext<T, I>> ComponentContext<SingleItemSelector.SingleItemSelectorContext<T,
I>>
- Enclosing class:
- SingleItemSelector<T,
I extends Nameable & Matchable & Enableable & Selectable & Itemable<T>>
public static interface SingleItemSelector.SingleItemSelectorContext<T,I extends Nameable & Matchable & Itemable<T>>
extends AbstractSelectorComponent.SelectorComponentContext<T,I,SingleItemSelector.SingleItemSelectorContext<T,I>>
Context
SingleItemSelector
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <C,
I extends Nameable & Matchable & Itemable<C>>
SingleItemSelector.SingleItemSelectorContext<C,I> empty()
Creates an emptySingleItemSelector.SingleItemSelectorContext
.static <C,
I extends Nameable & Matchable & Itemable<C>>
SingleItemSelector.SingleItemSelectorContext<C,I> Creates aSingleItemSelector.SingleItemSelectorContext
.Gets a result item.getValue()
Gets a value.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
-
getResultItem
Gets a result item.- Returns:
- a result item
-
getValue
Gets a value.- Returns:
- a value
-
empty
static <C,I extends Nameable & Matchable & Itemable<C>> SingleItemSelector.SingleItemSelectorContext<C,I> empty()Creates an emptySingleItemSelector.SingleItemSelectorContext
.- Type Parameters:
C
- the type of context- Returns:
- empty context
-
empty
static <C,I extends Nameable & Matchable & Itemable<C>> SingleItemSelector.SingleItemSelectorContext<C,I> empty(Function<C, String> itemMapper) Creates aSingleItemSelector.SingleItemSelectorContext
.- Returns:
- context
-