Class QuestionAnswerTypeDouble

    • Constructor Detail

      • QuestionAnswerTypeDouble

        public QuestionAnswerTypeDouble()
    • Method Detail

      • isValidInput

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

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

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