Class QuestionAnswerTypeValidHostAndPort
- java.lang.Object
-
- de.dytanic.cloudnet.console.animation.questionlist.answer.QuestionAnswerTypeValidHostAndPort
-
- All Implemented Interfaces:
QuestionAnswerType<de.dytanic.cloudnet.driver.network.HostAndPort>
- Direct Known Subclasses:
QuestionAnswerTypeHostAndPort
public class QuestionAnswerTypeValidHostAndPort extends java.lang.Object implements QuestionAnswerType<de.dytanic.cloudnet.driver.network.HostAndPort>
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanrequiresPort
-
Constructor Summary
Constructors Constructor Description QuestionAnswerTypeValidHostAndPort()QuestionAnswerTypeValidHostAndPort(boolean requiresPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.util.Collection<java.lang.String>getPossibleAnswers()booleanisValidInput(@NotNull java.lang.String input)@Nullable de.dytanic.cloudnet.driver.network.HostAndPortparse(@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, getInvalidInputMessage, getPossibleAnswersAsString, getRecommendation
-
-
-
-
Method Detail
-
isValidInput
public boolean isValidInput(@NotNull @NotNull java.lang.String input)- Specified by:
isValidInputin interfaceQuestionAnswerType<de.dytanic.cloudnet.driver.network.HostAndPort>
-
parse
@Nullable public @Nullable de.dytanic.cloudnet.driver.network.HostAndPort parse(@NotNull @NotNull java.lang.String input)- Specified by:
parsein interfaceQuestionAnswerType<de.dytanic.cloudnet.driver.network.HostAndPort>
-
getPossibleAnswers
@Nullable public @Nullable java.util.Collection<java.lang.String> getPossibleAnswers()
- Specified by:
getPossibleAnswersin interfaceQuestionAnswerType<de.dytanic.cloudnet.driver.network.HostAndPort>- Returns:
- null if there are infinite possible numbers
-
-