Class IntegerInput

java.lang.Object
io.github.lucfr1746.llibrary.chatinput.input.ChatInput
io.github.lucfr1746.llibrary.chatinput.input.IntegerInput

public class IntegerInput extends ChatInput
A child class of AquaInput used for the input of integer values.
  • Constructor Details

    • IntegerInput

      public IntegerInput()
  • Method Details

    • isValidInput

      public boolean isValidInput(@NotNull @NotNull String input)
      Description copied from class: ChatInput
      Checks if the given input is valid.
      Specified by:
      isValidInput in class ChatInput
      Parameters:
      input - the input
    • parseInput

      public Optional<Integer> parseInput(@NotNull @NotNull String input)
      Parses the given input if possible into an integer.
      Parameters:
      input - the input
      Returns:
      an optional that may contain the parsed value