org.nuxeo.ecm.core.api
Class ListDiff
java.lang.Object
org.nuxeo.ecm.core.api.ListDiff
- All Implemented Interfaces:
- Serializable
public class ListDiff
- extends Object
- implements Serializable
A list that is detached from its data source so all modifications on the list
are recorded so that the data source will be updated later when the list will
be reconnected to it.
It purposedly doesn't implement the List interface.
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
ADD
public static final int ADD
- See Also:
- Constant Field Values
INSERT
public static final int INSERT
- See Also:
- Constant Field Values
REMOVE
public static final int REMOVE
- See Also:
- Constant Field Values
MODIFY
public static final int MODIFY
- See Also:
- Constant Field Values
MOVE
public static final int MOVE
- See Also:
- Constant Field Values
CLEAR
public static final int CLEAR
- See Also:
- Constant Field Values
ListDiff
public ListDiff()
ListDiff
public ListDiff(ListDiff listDiff)
add
public void add(Object value)
insert
public void insert(int index,
Object value)
modify
public void modify(int index,
Object value)
move
public void move(int fromIndex,
int toIndex)
remove
public void remove(int index)
removeAll
public void removeAll()
reset
public void reset()
isDirty
public boolean isDirty()
diff
public ListDiff.Entry[] diff()
toString
public String toString()
- Overrides:
toString
in class Object
typeToString
public static String typeToString(int type)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.