Class NumberCondition

    • Method Detail

      • fieldName

        public final String fieldName()

        The name of the field in the number condition.

        Returns:
        The name of the field in the number condition.
      • minValue

        public final Integer minValue()

        The minValue to be used while evaluating the number condition.

        Returns:
        The minValue to be used while evaluating the number condition.
      • maxValue

        public final Integer maxValue()

        The maxValue to be used while evaluating the number condition.

        Returns:
        The maxValue to be used while evaluating the number condition.
      • comparisonTypeAsString

        public final String comparisonTypeAsString()

        The type of comparison to be made when evaluating the number condition.

        If the service returns an enum value that is not available in the current SDK version, comparisonType will return NumberComparisonType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from comparisonTypeAsString().

        Returns:
        The type of comparison to be made when evaluating the number condition.
        See Also:
        NumberComparisonType
      • 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)