Class QuestionAnswerTypeBoolean
- java.lang.Object
-
- de.dytanic.cloudnet.console.animation.questionlist.answer.QuestionAnswerTypeBoolean
-
- All Implemented Interfaces:
QuestionAnswerType<java.lang.Boolean>
public class QuestionAnswerTypeBoolean extends java.lang.Object implements QuestionAnswerType<java.lang.Boolean>
-
-
Constructor Summary
Constructors Constructor Description QuestionAnswerTypeBoolean()QuestionAnswerTypeBoolean(java.lang.String trueString, java.lang.String falseString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getCompletableAnswers()java.lang.StringgetFalseString()java.lang.StringgetInvalidInputMessage(@NotNull java.lang.String input)java.util.Collection<java.lang.String>getPossibleAnswers()java.lang.StringgetTrueString()booleanisValidInput(@NotNull java.lang.String input)@NotNull java.lang.Booleanparse(@NotNull java.lang.String input)-
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
getPossibleAnswersAsString, getRecommendation
-
-
-
-
Method Detail
-
getTrueString
public java.lang.String getTrueString()
-
getFalseString
public java.lang.String getFalseString()
-
isValidInput
public boolean isValidInput(@NotNull @NotNull java.lang.String input)- Specified by:
isValidInputin interfaceQuestionAnswerType<java.lang.Boolean>
-
parse
@NotNull public @NotNull java.lang.Boolean parse(@NotNull @NotNull java.lang.String input)- Specified by:
parsein interfaceQuestionAnswerType<java.lang.Boolean>
-
getPossibleAnswers
public java.util.Collection<java.lang.String> getPossibleAnswers()
- Specified by:
getPossibleAnswersin interfaceQuestionAnswerType<java.lang.Boolean>- Returns:
- null if there are infinite possible numbers
-
getCompletableAnswers
public java.util.List<java.lang.String> getCompletableAnswers()
- Specified by:
getCompletableAnswersin interfaceQuestionAnswerType<java.lang.Boolean>
-
getInvalidInputMessage
public java.lang.String getInvalidInputMessage(@NotNull @NotNull java.lang.String input)- Specified by:
getInvalidInputMessagein interfaceQuestionAnswerType<java.lang.Boolean>
-
-