Class UpdateOp.Condition

  • Enclosing class:
    UpdateOp

    public static final class UpdateOp.Condition
    extends java.lang.Object
    A condition to check before an update is applied.
    • 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.
      • 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 class java.lang.Object