Package dev.morphia.query.updates
Class PopOperator
- java.lang.Object
-
- dev.morphia.query.updates.UpdateOperator
-
- dev.morphia.query.updates.PopOperator
-
public class PopOperator extends UpdateOperator
Defines the $pop update operator.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description PopOperator(String field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PopOperator
removeFirst()
Remove the first element rather than the last.
-
-
-
Constructor Detail
-
PopOperator
@MorphiaInternal public PopOperator(String field)
- Parameters:
field
- the field
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Detail
-
removeFirst
public PopOperator removeFirst()
Remove the first element rather than the last.- Returns:
- this
-
-