Class DefaultInputPrompt

    • Constructor Detail

      • DefaultInputPrompt

        public DefaultInputPrompt​(java.lang.String name,
                                  java.lang.String message,
                                  java.lang.String defaultValue,
                                  java.lang.Character mask,
                                  org.jline.reader.Completer completer,
                                  org.jline.reader.LineReader lineReader,
                                  java.util.function.Function<java.lang.String,​java.lang.Boolean> validator)
    • Method Detail

      • getDefaultValue

        public java.lang.String getDefaultValue()
        Description copied from interface: InputPrompt
        Get the default value.
        Specified by:
        getDefaultValue in interface InputPrompt
        Returns:
        the default value
      • getMask

        public java.lang.Character getMask()
        Description copied from interface: InputPrompt
        Get the mask character for the input.
        Specified by:
        getMask in interface InputPrompt
        Returns:
        the mask character, or null if masking is disabled
      • getCompleter

        public org.jline.reader.Completer getCompleter()
        Description copied from interface: InputPrompt
        Get the completer.
        Specified by:
        getCompleter in interface InputPrompt
        Returns:
        the completer
      • getLineReader

        public org.jline.reader.LineReader getLineReader()
        Description copied from interface: InputPrompt
        Get the line reader.
        Specified by:
        getLineReader in interface InputPrompt
        Returns:
        the line reader
      • getValidator

        public java.util.function.Function<java.lang.String,​java.lang.Boolean> getValidator()
        Description copied from interface: InputPrompt
        Get the validator.
        Specified by:
        getValidator in interface InputPrompt
        Returns:
        the validator