Interface QuestionAnswerType<T>
-
- All Known Implementing Classes:
QuestionAnswerTypeBoolean,QuestionAnswerTypeCollection,QuestionAnswerTypeDouble,QuestionAnswerTypeEnum,QuestionAnswerTypeHostAndPort,QuestionAnswerTypeInt,QuestionAnswerTypeIntRange,QuestionAnswerTypeServiceTemplate,QuestionAnswerTypeServiceVersion,QuestionAnswerTypeStaticString,QuestionAnswerTypeStaticStringArray,QuestionAnswerTypeString,QuestionAnswerTypeUUID,QuestionAnswerTypeValidHostAndPort
public interface QuestionAnswerType<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @Nullable java.util.List<java.lang.String>getCompletableAnswers()default @Nullable java.lang.StringgetInvalidInputMessage(@NotNull java.lang.String input)@Nullable java.util.Collection<java.lang.String>getPossibleAnswers()default @Nullable java.lang.StringgetPossibleAnswersAsString()default @Nullable java.lang.StringgetRecommendation()booleanisValidInput(@NotNull java.lang.String input)Tparse(@NotNull java.lang.String input)
-
-
-
Method Detail
-
isValidInput
boolean isValidInput(@NotNull @NotNull java.lang.String input)
-
parse
@Nullable T parse(@NotNull @NotNull java.lang.String input)
-
getPossibleAnswers
@Nullable @Nullable java.util.Collection<java.lang.String> getPossibleAnswers()
- Returns:
- null if there are infinite possible numbers
-
getCompletableAnswers
@Nullable default @Nullable java.util.List<java.lang.String> getCompletableAnswers()
-
getRecommendation
@Nullable default @Nullable java.lang.String getRecommendation()
-
getPossibleAnswersAsString
@Nullable default @Nullable java.lang.String getPossibleAnswersAsString()
-
getInvalidInputMessage
@Nullable default @Nullable java.lang.String getInvalidInputMessage(@NotNull @NotNull java.lang.String input)
-
-