| Modifier and Type | Method and Description |
|---|---|
Update.PushOperatorBuilder |
atPosition(int position)
Forces values to be added at the given position.
|
Update.PushOperatorBuilder |
atPosition(Update.Position position)
Forces values to be added at given position.
|
Update |
each(Object... values)
Propagates
$each to $push |
boolean |
equals(Object obj) |
int |
hashCode() |
Update.PushOperatorBuilder |
slice(int count)
Propagates
$slice to $push. |
Update.PushOperatorBuilder |
sort(Sort.Direction direction)
Propagates
$sort to $push. |
Update.PushOperatorBuilder |
sort(Sort sort)
Propagates
$sort to $push. |
Update |
value(Object value)
Propagates
value(Object) to $push |
public Update each(Object... values)
$each to $pushvalues - public Update.PushOperatorBuilder slice(int count)
$slice to $push. $slice requires the $each operator. $slice updates the array to an empty array. $slice updates the array to contain only the last count
elements. $slice updates the array to contain only the first count
elements. count - public Update.PushOperatorBuilder sort(Sort.Direction direction)
$sort to $push. $sort requires the $each operator. Forces elements to
be sorted by values in given direction.direction - must not be null.public Update.PushOperatorBuilder sort(Sort sort)
$sort to $push. $sort requires the $each operator. Forces document
elements to be sorted in given order.sort - must not be null.public Update.PushOperatorBuilder atPosition(int position)
position - needs to be greater than or equal to zero.public Update.PushOperatorBuilder atPosition(@Nullable Update.Position position)
position - can be null which will be appended at the last position.public Update value(Object value)
value(Object) to $pushvalue - Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.