| java.lang.Object org.netbeans.swing.tabcontrol.event.ArrayDiff
ArrayDiff | final public class ArrayDiff (Code) | | Class representing a diff of two arrays. Note that it is
not designed to work with arrays which contain the same
element more than one time - in that case, the results are undefined.
Note the current implementation is unoptimized and fairly brute force.
author: Tim Boudreau |
createDiff | public static ArrayDiff createDiff(TabData[] old, TabData[] nue)(Code) | | Returns an ArrayDiff object if the two arrays are not the same, or null
if they are
|
getAddedIndices | public Set<Integer> getAddedIndices()(Code) | | Returns the indices of objects in the new array which are not present in
the old array
|
getChangedIndices | public Set<Integer> getChangedIndices()(Code) | | Returns the indices of objects which differ in any way between the new
and old array. The size of the result is Math.max(old.length,
nue.length).
|
getDeletedIndices | public Set<Integer> getDeletedIndices()(Code) | | Returns the indices of objects in the old array which are not present in
the new array. The resulting array's size will be that of the old array
|
getMovedIndices | public Set<Integer> getMovedIndices()(Code) | | Returns the indices of objects which were in the old array and are also
in the new array, but at a different index. The indices returned are
indices into the old array.
|
getNewData | public TabData[] getNewData()(Code) | | Get the array representing the new state
|
getOldData | public TabData[] getOldData()(Code) | | Get the array representing the old state
|
hashCode | public int hashCode()(Code) | | |
|
|