org.nuxeo.ecm.core.api
Class ListDiff
java.lang.Object
org.nuxeo.ecm.core.api.ListDiff
- All Implemented Interfaces:
- java.io.Serializable
public class ListDiff
- extends java.lang.Object
- implements java.io.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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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(java.lang.Object value)
insert
public void insert(int index,
java.lang.Object value)
modify
public void modify(int index,
java.lang.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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
typeToString
public static java.lang.String typeToString(int type)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.