Enum Class UpdateConstraint.Operator

java.lang.Object
java.lang.Enum<UpdateConstraint.Operator>
com.pushtechnology.diffusion.client.features.UpdateConstraint.Operator
All Implemented Interfaces:
Serializable, Comparable<UpdateConstraint.Operator>, Constable
Enclosing interface:
UpdateConstraint

public static enum UpdateConstraint.Operator extends Enum<UpdateConstraint.Operator>
An operator used in a constraint comparison.
Since:
6.10
  • Enum Constant Details

    • IS

      public static final UpdateConstraint.Operator IS
      Strict binary equality.

      This operator requires that the binary topic value is exactly equivalent to the value supplied for comparison.

    • EQ

      public static final UpdateConstraint.Operator EQ
      Lenient equals.

      This operator requires that the topic value is logically equal to the supplied value.

      If the supplied value is a string the string representation of the specified topic value is compared for string equality.

      If the supplied value is a number (Long or Double) the corresponding topic value may be a number or a string containing a parseable number and will be compared for numeric equality.

      If the supplied value is null the condition will be satisfied if the value at a specified pointer is JSON null.

    • NE

      public static final UpdateConstraint.Operator NE
      Lenient not equals.

      This operator requires that the topic value is logically not equal to the supplied value.

      If the supplied value is a string the string representation of the specified topic value is compared for string equality.

      If the supplied value is a number (Long or Double) the corresponding topic value may be a number or a string containing a parseable number and will be compared for numeric equality.

      If the supplied value is null the condition will be satisfied if the value at a specified pointer not JSON null.

    • GT

      public static final UpdateConstraint.Operator GT
      Lenient greater than.

      This operator requires that the topic value is greater than the supplied value.

      The supplied value must be a number (Long or Double). The corresponding topic value may be a number or a string containing a parseable number and the condition will be satisfied if the topic value is greater than the supplied value.

    • GE

      public static final UpdateConstraint.Operator GE
      Lenient greater than or equals.

      This operator requires that the topic value is greater than or equal to the supplied value.

      The supplied value must be a number (Long or Double). The corresponding topic value may be a number or a string containing a parseable number and the condition will be satisfied if the topic value is greater than or equal to the supplied value.

    • LT

      public static final UpdateConstraint.Operator LT
      Lenient less than.

      This operator requires that the topic value is less than the supplied value.

      The supplied value must be a number (Long or Double). The corresponding topic value may be a number or a string containing a parseable number and the condition will be satisfied if the topic value is less than the supplied value.

    • LE

      public static final UpdateConstraint.Operator LE
      Lenient less than or equals.

      This operator requires that the topic value is less than or equal to the supplied value.

      The supplied value must be a number (Long or Double). The corresponding topic value may be a number or a string containing a parseable number and the condition will be satisfied if the topic value is less than or equal to the supplied value.

  • Method Details

    • values

      public static UpdateConstraint.Operator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UpdateConstraint.Operator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null