java.lang.Object
org.jline.prompt.impl.AbstractPromptResult<CheckboxPrompt>
org.jline.prompt.impl.DefaultCheckboxResult
- All Implemented Interfaces:
CheckboxResult,PromptResult<CheckboxPrompt>
public class DefaultCheckboxResult
extends AbstractPromptResult<CheckboxPrompt>
implements CheckboxResult
Implementation of CheckboxResult.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCheckboxResult(Set<String> selectedIds, CheckboxPrompt prompt) Create a new DefaultCheckboxResult with the given selected IDs and item. -
Method Summary
Methods inherited from class org.jline.prompt.impl.AbstractPromptResult
applyFilter, getPrompt, getResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jline.prompt.PromptResult
getDisplayResult, getPrompt, getResult
-
Constructor Details
-
DefaultCheckboxResult
Create a new DefaultCheckboxResult with the given selected IDs and item.- Parameters:
selectedIds- the IDs of the selected itemsitem- the associated PromptItem, or null if none
-
-
Method Details
-
getSelectedIds
Description copied from interface:CheckboxResultGet the IDs of the selected items.- Specified by:
getSelectedIdsin interfaceCheckboxResult- Returns:
- the IDs of the selected items
-
getRawResult
Description copied from class:AbstractPromptResultGet the raw (unfiltered) result value. Subclasses must implement this instead ofAbstractPromptResult.getResult().- Specified by:
getRawResultin classAbstractPromptResult<CheckboxPrompt>- Returns:
- the raw result value
-
toString
-