Class QuestionAnswerTypeServiceVersion
- java.lang.Object
-
- de.dytanic.cloudnet.console.animation.questionlist.answer.QuestionAnswerTypeServiceVersion
-
- All Implemented Interfaces:
QuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>
public class QuestionAnswerTypeServiceVersion extends java.lang.Object implements QuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>
-
-
Constructor Summary
Constructors Constructor Description QuestionAnswerTypeServiceVersion(de.dytanic.cloudnet.driver.service.ServiceEnvironment environment, ServiceVersionProvider serviceVersionProvider)QuestionAnswerTypeServiceVersion(java.util.function.Supplier<de.dytanic.cloudnet.driver.service.ServiceEnvironmentType> environmentTypeSupplier, ServiceVersionProvider serviceVersionProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.List<java.lang.String>getCompletableAnswers()java.lang.StringgetInvalidInputMessage(@NotNull java.lang.String input)@NotNull java.util.Collection<java.lang.String>getPossibleAnswers()java.lang.StringgetPossibleAnswersAsString()booleanisValidInput(@NotNull java.lang.String input)de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>parse(@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
getRecommendation
-
-
-
-
Constructor Detail
-
QuestionAnswerTypeServiceVersion
public QuestionAnswerTypeServiceVersion(java.util.function.Supplier<de.dytanic.cloudnet.driver.service.ServiceEnvironmentType> environmentTypeSupplier, ServiceVersionProvider serviceVersionProvider)
-
QuestionAnswerTypeServiceVersion
public QuestionAnswerTypeServiceVersion(de.dytanic.cloudnet.driver.service.ServiceEnvironment environment, ServiceVersionProvider serviceVersionProvider)
-
-
Method Detail
-
isValidInput
public boolean isValidInput(@NotNull @NotNull java.lang.String input)- Specified by:
isValidInputin interfaceQuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>
-
parse
public de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion> parse(@NotNull @NotNull java.lang.String input)
- Specified by:
parsein interfaceQuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>
-
getPossibleAnswers
@NotNull public @NotNull java.util.Collection<java.lang.String> getPossibleAnswers()
- Specified by:
getPossibleAnswersin interfaceQuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>- Returns:
- null if there are infinite possible numbers
-
getPossibleAnswersAsString
public java.lang.String getPossibleAnswersAsString()
- Specified by:
getPossibleAnswersAsStringin interfaceQuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>
-
getCompletableAnswers
@NotNull public @NotNull java.util.List<java.lang.String> getCompletableAnswers()
- Specified by:
getCompletableAnswersin interfaceQuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>
-
getInvalidInputMessage
public java.lang.String getInvalidInputMessage(@NotNull @NotNull java.lang.String input)- Specified by:
getInvalidInputMessagein interfaceQuestionAnswerType<de.dytanic.cloudnet.common.collection.Pair<ServiceVersionType,ServiceVersion>>
-
-