| Modifier and Type | Method and Description |
|---|---|
static <T,U> Delta |
compare(Delta parent,
T[] tt,
U[] uu)
Compare two arrays.
|
Delta |
getChange(int index)
Get a change for a given index.
|
java.util.Map<java.lang.Integer,Delta> |
getChanges()
Get all changes as a map where key is an index of changed item and a value is a
Delta instance
describing the change. |
boolean |
isEmpty() |
between, getNestedDelta, getParent, newValue, oldValue, registerInParentpublic java.util.Map<java.lang.Integer,Delta> getChanges()
Delta instance
describing the change.public static <T,U> Delta compare(Delta parent, T[] tt, U[] uu)
ChangedItem instances and RemovedItem for the last element, what is not exactly right for arrays
used as sets. We strongly recommend using hash-based sets.T - U - parent - tt - uu - public boolean isEmpty()
public Delta getChange(int index)
index - integer index value