com.jidesoft.diff
Class DifferenceList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Difference>
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
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 |
DifferenceList
public DifferenceList()
- The constructor.
addLinesDiff
public void addLinesDiff(Difference diff,
List<Difference> linesDiff)
- Adds the lines difference.
- Parameters:
diff
- the target difference instancelinesDiff
- 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.