public static enum UpdateConstraint.Operator extends Enum<UpdateConstraint.Operator>
Enum Constant and Description |
---|
EQ
Lenient equals.
|
GE
Lenient greater than or equals.
|
GT
Lenient greater than.
|
IS
Strict binary equality.
|
LE
Lenient less than or equals.
|
LT
Lenient less than.
|
NE
Lenient not equals.
|
Modifier and Type | Method and Description |
---|---|
static UpdateConstraint.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdateConstraint.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateConstraint.Operator IS
This operator requires that the binary topic value is exactly equivalent to the value supplied for comparison.
public static final UpdateConstraint.Operator EQ
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.
public static final UpdateConstraint.Operator NE
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.
public static final UpdateConstraint.Operator GT
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.
public static final UpdateConstraint.Operator GE
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.
public static final UpdateConstraint.Operator LT
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.
public static final UpdateConstraint.Operator LE
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.
public static UpdateConstraint.Operator[] values()
for (UpdateConstraint.Operator c : UpdateConstraint.Operator.values()) System.out.println(c);
public static UpdateConstraint.Operator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 DiffusionData Ltd. All Rights Reserved.