Class QuestionAnswerTypeServiceTemplate
- java.lang.Object
-
- de.dytanic.cloudnet.console.animation.questionlist.answer.QuestionAnswerTypeServiceTemplate
-
- All Implemented Interfaces:
QuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
public class QuestionAnswerTypeServiceTemplate extends java.lang.Object implements QuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
-
-
Constructor Summary
Constructors Constructor Description QuestionAnswerTypeServiceTemplate(boolean existingStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInvalidInputMessage(@NotNull java.lang.String input)java.util.Collection<java.lang.String>getPossibleAnswers()booleanisValidInput(@NotNull java.lang.String input)protected java.util.Collection<java.lang.String>mapTemplates(java.util.Collection<de.dytanic.cloudnet.driver.service.ServiceTemplate> templates)de.dytanic.cloudnet.driver.service.ServiceTemplateparse(@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
getCompletableAnswers, getPossibleAnswersAsString, getRecommendation
-
-
-
-
Method Detail
-
isValidInput
public boolean isValidInput(@NotNull @NotNull java.lang.String input)- Specified by:
isValidInputin interfaceQuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
-
parse
public de.dytanic.cloudnet.driver.service.ServiceTemplate parse(@NotNull @NotNull java.lang.String input)- Specified by:
parsein interfaceQuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
-
getInvalidInputMessage
public java.lang.String getInvalidInputMessage(@NotNull @NotNull java.lang.String input)- Specified by:
getInvalidInputMessagein interfaceQuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
-
getPossibleAnswers
public java.util.Collection<java.lang.String> getPossibleAnswers()
- Specified by:
getPossibleAnswersin interfaceQuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>- Returns:
- null if there are infinite possible numbers
-
mapTemplates
protected java.util.Collection<java.lang.String> mapTemplates(java.util.Collection<de.dytanic.cloudnet.driver.service.ServiceTemplate> templates)
-
-