Class QuestionAnswerTypeIntRange
- java.lang.Object
-
- de.dytanic.cloudnet.console.animation.questionlist.answer.QuestionAnswerTypeInt
-
- de.dytanic.cloudnet.console.animation.questionlist.answer.QuestionAnswerTypeIntRange
-
- All Implemented Interfaces:
QuestionAnswerType<java.lang.Integer>
public class QuestionAnswerTypeIntRange extends QuestionAnswerTypeInt
-
-
Constructor Summary
Constructors Constructor Description QuestionAnswerTypeIntRange(int minValue, int maxValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInvalidInputMessage(@NotNull java.lang.String input)java.lang.StringgetPossibleAnswersAsString()booleanisValidInput(@NotNull java.lang.String input)@NotNull java.lang.Integerparse(@NotNull java.lang.String input)-
Methods inherited from class de.dytanic.cloudnet.console.animation.questionlist.answer.QuestionAnswerTypeInt
getPossibleAnswers
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.dytanic.cloudnet.console.animation.questionlist.QuestionAnswerType
getCompletableAnswers, getRecommendation
-
-
-
-
Method Detail
-
isValidInput
public boolean isValidInput(@NotNull @NotNull java.lang.String input)- Specified by:
isValidInputin interfaceQuestionAnswerType<java.lang.Integer>- Overrides:
isValidInputin classQuestionAnswerTypeInt
-
parse
@NotNull public @NotNull java.lang.Integer parse(@NotNull @NotNull java.lang.String input)- Specified by:
parsein interfaceQuestionAnswerType<java.lang.Integer>- Overrides:
parsein classQuestionAnswerTypeInt
-
getPossibleAnswersAsString
public java.lang.String getPossibleAnswersAsString()
-
getInvalidInputMessage
public java.lang.String getInvalidInputMessage(@NotNull @NotNull java.lang.String input)- Specified by:
getInvalidInputMessagein interfaceQuestionAnswerType<java.lang.Integer>- Overrides:
getInvalidInputMessagein classQuestionAnswerTypeInt
-
-