Class AddToSetOperator


  • public class AddToSetOperator
    extends UpdateOperator
    Defines the $addToSet operator
    Since:
    2.0
    • Constructor Detail

      • AddToSetOperator

        @MorphiaInternal
        public AddToSetOperator​(String field,
                                Object values)
        Parameters:
        field - the field
        values - the values
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • toTarget

        public OperationTarget toTarget​(dev.morphia.internal.PathTarget pathTarget)
        Description copied from class: UpdateOperator
        Creates the OperationTarget for serialization
        Overrides:
        toTarget in class UpdateOperator
        Parameters:
        pathTarget - the PathTarget
        Returns:
        the OperationTarget