Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListDiff.Entry
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Object value)
ListDiff.Entry[]
diff()
void
insert(int index, Object value)
boolean
isDirty()
void
modify(int index, Object value)
void
move(int fromIndex, int toIndex)
void
remove(int index)
void
removeAll()
void
reset()
String
toString()
static String
typeToString(int type)
-
-
-
Field Detail
-
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
-
-
Constructor Detail
-
ListDiff
public ListDiff()
-
ListDiff
public ListDiff(ListDiff listDiff)
-
-
Method Detail
-
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()
-
typeToString
public static String typeToString(int type)
-
-