Package org.nuxeo.ecm.core.storage
Class State.ListDiff
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.State.ListDiff
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- State
public static class State.ListDiff extends Object implements Serializable
A diff for an array orList.This diff is applied onto an existing array/
Listin the following manner:- Since:
- 5.9.5
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description List<Object>diffIf diff is notnull, each element of the list is applied to the existing array/List.booleanisArrayList<Object>pullIf pull is notnull, this is removed from the existing array/List.List<Object>rpushIf rpush is notnull, this is appended to the right of the existing array/List.
-
Constructor Summary
Constructors Constructor Description ListDiff()
-
-
-
Field Detail
-
isArray
public boolean isArray
-
diff
public List<Object> diff
If diff is notnull, each element of the list is applied to the existing array/List. An element can be:- a
State.StateDiff, to be applied on aState, - an actual value to be set (including
null), State.NOPif no change is needed.
- a
-
rpush
public List<Object> rpush
If rpush is notnull, this is appended to the right of the existing array/List.
-
-