Class PopOperator
- java.lang.Object
-
- dev.morphia.query.experimental.updates.UpdateOperator
-
- dev.morphia.query.experimental.updates.PopOperator
-
public class PopOperator extends UpdateOperator
Defines the $pop update operator.- Since:
- 2.0
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
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
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
-
-