Interface SetOperation.FieldAppender.ValueAppender

Enclosing class:
SetOperation.FieldAppender

public static interface SetOperation.FieldAppender.ValueAppender
Since:
3.0
Author:
Christoph Strobl, Mark Paluch
  • Method Details

    • toValue

      SetOperation toValue(@Nullable Object value)
      Define the value to assign as is.
      Parameters:
      value - can be null.
      Returns:
      new instance of SetOperation.
    • toValueOf

      SetOperation toValueOf(Object value)
      Define the value to assign. Plain String values are treated as field references.
      Parameters:
      value - must not be null.
      Returns:
      new instance of SetOperation.
    • withValueOfExpression

      SetOperation withValueOfExpression(String operation, Object... values)
      Adds a generic projection for the current field.
      Parameters:
      operation - the operation key, e.g. $add.
      values - the values to be set for the projection operation.
      Returns:
      new instance of SetOperation.