Class QuestionAnswerTypeValidHostAndPort

    • Field Detail

      • requiresPort

        protected final boolean requiresPort
    • Constructor Detail

      • QuestionAnswerTypeValidHostAndPort

        public QuestionAnswerTypeValidHostAndPort()
      • QuestionAnswerTypeValidHostAndPort

        public QuestionAnswerTypeValidHostAndPort​(boolean requiresPort)
    • Method Detail

      • isValidInput

        public boolean isValidInput​(@NotNull
                                    @NotNull java.lang.String input)
        Specified by:
        isValidInput in interface QuestionAnswerType<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:
        parse in interface QuestionAnswerType<de.dytanic.cloudnet.driver.network.HostAndPort>
      • getPossibleAnswers

        @Nullable
        public @Nullable java.util.Collection<java.lang.String> getPossibleAnswers()
        Specified by:
        getPossibleAnswers in interface QuestionAnswerType<de.dytanic.cloudnet.driver.network.HostAndPort>
        Returns:
        null if there are infinite possible numbers