Class QuestionAnswerTypeInt

    • Constructor Detail

      • QuestionAnswerTypeInt

        public QuestionAnswerTypeInt()
    • Method Detail

      • isValidInput

        public boolean isValidInput​(@NotNull
                                    @NotNull java.lang.String input)
        Specified by:
        isValidInput in interface QuestionAnswerType<java.lang.Integer>
      • parse

        @NotNull
        public @NotNull java.lang.Integer parse​(@NotNull
                                                @NotNull java.lang.String input)
        Specified by:
        parse in interface QuestionAnswerType<java.lang.Integer>
      • getPossibleAnswers

        public java.util.Collection<java.lang.String> getPossibleAnswers()
        Specified by:
        getPossibleAnswers in interface QuestionAnswerType<java.lang.Integer>
        Returns:
        null if there are infinite possible numbers
      • getInvalidInputMessage

        public java.lang.String getInvalidInputMessage​(@NotNull
                                                       @NotNull java.lang.String input)
        Specified by:
        getInvalidInputMessage in interface QuestionAnswerType<java.lang.Integer>