JIDE 3.5.15

com.jidesoft.diff
Class DifferenceList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Difference>
              extended by com.jidesoft.diff.DifferenceList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Difference>, Collection<Difference>, List<Difference>, RandomAccess

public class DifferenceList
extends ArrayList<Difference>

The Difference List created by the Diff class. This class could contain lines difference information.

Since:
3.5.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DifferenceList()
          The constructor.
 
Method Summary
 void addLinesDiff(Difference diff, List<Difference> linesDiff)
          Adds the lines difference.
 void clearAllLinesDiff()
          Clears all lines difference
 List<Difference> getLinesDiff(Difference diff)
          Gets the lines difference.
 void removeLinesDiff(Difference diff)
          Removes the lines difference.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

DifferenceList

public DifferenceList()
The constructor.

Method Detail

addLinesDiff

public void addLinesDiff(Difference diff,
                         List<Difference> linesDiff)
Adds the lines difference.

Parameters:
diff - the target difference instance
linesDiff - the lines difference list

removeLinesDiff

public void removeLinesDiff(Difference diff)
Removes the lines difference.

Parameters:
diff - the target difference instance

clearAllLinesDiff

public void clearAllLinesDiff()
Clears all lines difference


getLinesDiff

public List<Difference> getLinesDiff(Difference diff)
Gets the lines difference.

Parameters:
diff - the target difference instance
Returns:
the lines difference list.

JIDE 3.5.15