Class EvaluationAnswerData

    • Method Detail

      • stringValue

        public final String stringValue()

        The string value for an answer in a contact evaluation.

        Returns:
        The string value for an answer in a contact evaluation.
      • numericValue

        public final Double numericValue()

        The numeric value for an answer in a contact evaluation.

        Returns:
        The numeric value for an answer in a contact evaluation.
      • notApplicable

        public final Boolean notApplicable()

        The flag to mark the question as not applicable.

        Returns:
        The flag to mark the question as not applicable.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromStringValue

        public static EvaluationAnswerData fromStringValue​(String stringValue)
        Create an instance of this class with stringValue() initialized to the given value.

        The string value for an answer in a contact evaluation.

        Parameters:
        stringValue - The string value for an answer in a contact evaluation.
      • fromNumericValue

        public static EvaluationAnswerData fromNumericValue​(Double numericValue)
        Create an instance of this class with numericValue() initialized to the given value.

        The numeric value for an answer in a contact evaluation.

        Parameters:
        numericValue - The numeric value for an answer in a contact evaluation.
      • fromNotApplicable

        public static EvaluationAnswerData fromNotApplicable​(Boolean notApplicable)
        Create an instance of this class with notApplicable() initialized to the given value.

        The flag to mark the question as not applicable.

        Parameters:
        notApplicable - The flag to mark the question as not applicable.