Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api
Class ListDiff

java.lang.Object
  extended by 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
static class ListDiff.Entry
           
 
Field Summary
static int ADD
           
static int CLEAR
           
static int INSERT
           
static int MODIFY
           
static int MOVE
           
static int REMOVE
           
 
Constructor Summary
ListDiff()
           
ListDiff(ListDiff listDiff)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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()

toString

public String toString()
Overrides:
toString in class Object

typeToString

public static String typeToString(int type)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.