Class DoubleInput
java.lang.Object
io.github.lucfr1746.llibrary.chatinput.input.ChatInput
io.github.lucfr1746.llibrary.chatinput.input.DoubleInput
A child class of ChatInput used for the input of double values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValidInput(@NotNull String input) Checks if the given input is valid.parseInput(@NotNull String input) Parses the given input if possible into a double.Methods inherited from class io.github.lucfr1746.llibrary.chatinput.input.ChatInput
copyTo, getAttempts, getTimeout, hasFlag, isCommandAllowed, sendMessage, sendMessage, setAllowedCommands, setAllowedCommands, setAttempts, setFlags, setMessage, setTimeout
-
Constructor Details
-
DoubleInput
public DoubleInput()
-
-
Method Details
-
isValidInput
Description copied from class:ChatInputChecks if the given input is valid.- Specified by:
isValidInputin classChatInput- Parameters:
input- the input
-
parseInput
Parses the given input if possible into a double.- Parameters:
input- the input- Returns:
- an optional that may contain the parsed value
-