Class UpdateOp.Condition
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.UpdateOp.Condition
-
- Enclosing class:
- UpdateOp
public static final class UpdateOp.Condition extends java.lang.Object
A condition to check before an update is applied.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpdateOp.Condition.Type
-
Field Summary
Fields Modifier and Type Field Description static UpdateOp.Condition
EXISTS
Check if a map entry exists in a map.static UpdateOp.Condition
MISSING
Check if a map entry is missing in a map.UpdateOp.Condition.Type
type
The condition type.java.lang.Object
value
The value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateOp.Condition
newEqualsCondition(@Nullable java.lang.Object value)
Creates a new equals condition with the given value.static UpdateOp.Condition
newNotEqualsCondition(@Nullable java.lang.Object value)
Creates a new notEquals condition with the given value.java.lang.String
toString()
-
-
-
Field Detail
-
EXISTS
public static final UpdateOp.Condition EXISTS
Check if a map entry exists in a map.
-
MISSING
public static final UpdateOp.Condition MISSING
Check if a map entry is missing in a map.
-
type
public final UpdateOp.Condition.Type type
The condition type.
-
value
public final java.lang.Object value
The value.
-
-
Method Detail
-
newEqualsCondition
public static UpdateOp.Condition newEqualsCondition(@Nullable @Nullable java.lang.Object value)
Creates a new equals condition with the given value.- Parameters:
value
- the value to compare to.- Returns:
- the equals condition.
-
newNotEqualsCondition
public static UpdateOp.Condition newNotEqualsCondition(@Nullable @Nullable java.lang.Object value)
Creates a new notEquals condition with the given value.- Parameters:
value
- the value to compare to.- Returns:
- the notEquals condition.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-