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

public class DoubleInput extends ChatInput
A child class of ChatInput used for the input of double values.
  • Constructor Details

    • DoubleInput

      public DoubleInput()
  • 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<Double> parseInput(@NotNull @NotNull String input)
      Parses the given input if possible into a double.
      Parameters:
      input - the input
      Returns:
      an optional that may contain the parsed value