Class Update.AddToSetBuilder

java.lang.Object
org.springframework.data.mongodb.core.query.Update.AddToSetBuilder
Enclosing class:
Update

public class Update.AddToSetBuilder extends Object
Builder for creating $addToSet modifier.
Since:
1.5
Author:
Christoph Strobl
  • Constructor Details

    • AddToSetBuilder

      public AddToSetBuilder(String key)
  • Method Details

    • each

      public Update each(Object... values)
      Propagates $each to $addToSet
      Parameters:
      values - must not be null.
      Returns:
      never null.
    • value

      public Update value(Object value)
      Propagates value(Object) to $addToSet
      Parameters:
      value -
      Returns:
      never null.