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:
  • Field Details

  • Constructor Details

    • ListDiff

      public ListDiff()
    • ListDiff

      public ListDiff(ListDiff listDiff)
  • Method Details

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