Class AddToSetOperator
- java.lang.Object
-
- dev.morphia.query.experimental.updates.UpdateOperator
-
- dev.morphia.query.experimental.updates.AddToSetOperator
-
public class AddToSetOperator extends UpdateOperator
Defines the $addToSet operator- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description AddToSetOperator(String field, Object values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationTarget
toTarget(PathTarget pathTarget)
Creates the OperationTarget for serialization-
Methods inherited from class dev.morphia.query.experimental.updates.UpdateOperator
field, operator, value, value
-
-
-
-
Method Detail
-
toTarget
public OperationTarget toTarget(PathTarget pathTarget)
Description copied from class:UpdateOperator
Creates the OperationTarget for serialization- Overrides:
toTarget
in classUpdateOperator
- Parameters:
pathTarget
- the PathTarget- Returns:
- the OperationTarget
-
-