java.lang.Object
org.jline.prompt.impl.AbstractPromptResult<KeyPressPrompt>
org.jline.prompt.impl.DefaultKeyPressResult
- All Implemented Interfaces:
KeyPressResult,PromptResult<KeyPressPrompt>
public class DefaultKeyPressResult
extends AbstractPromptResult<KeyPressPrompt>
implements KeyPressResult
Implementation of KeyPressResult.
-
Constructor Summary
Constructors -
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
-
DefaultKeyPressResult
-
-
Method Details
-
getKey
Description copied from interface:KeyPressResultGet the key that was pressed.- Specified by:
getKeyin interfaceKeyPressResult- Returns:
- the pressed key as a string
-
getRawResult
Description copied from class:AbstractPromptResultGet the raw (unfiltered) result value. Subclasses must implement this instead ofAbstractPromptResult.getResult().- Specified by:
getRawResultin classAbstractPromptResult<KeyPressPrompt>- Returns:
- the raw result value
-
toString
-