Class 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 Detail

      • QuestionAnswerTypeServiceTemplate

        public QuestionAnswerTypeServiceTemplate​(boolean existingStorage)
    • Method Detail

      • isValidInput

        public boolean isValidInput​(@NotNull
                                    @NotNull java.lang.String input)
        Specified by:
        isValidInput in interface QuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
      • parse

        public de.dytanic.cloudnet.driver.service.ServiceTemplate parse​(@NotNull
                                                                        @NotNull java.lang.String input)
        Specified by:
        parse in interface QuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
      • getInvalidInputMessage

        public java.lang.String getInvalidInputMessage​(@NotNull
                                                       @NotNull java.lang.String input)
        Specified by:
        getInvalidInputMessage in interface QuestionAnswerType<de.dytanic.cloudnet.driver.service.ServiceTemplate>
      • getPossibleAnswers

        public java.util.Collection<java.lang.String> getPossibleAnswers()
        Specified by:
        getPossibleAnswers in interface QuestionAnswerType<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)