Class CharChange

All Implemented Interfaces:

public final class CharChange
extends Change

This class represents a character change on a line. A character change can be a single character replaced by another character or it can be a whole block of characters inserted, deleted or replaced by other characters.

See Also:
Serialized Form

Field Summary
Fields inherited from class upidiff.diff.Change
deleted, deletedOffset, inserted, insertedOffset, NEWFILE, next, NOTMERGED, OLDFILE, parent, prev, whichVersion
Constructor Summary
(package private) CharChange(Diff.Change change, LineChange parent)
          Creates a new character change object using the result of the diff calculation.
Methods inherited from class upidiff.diff.Change
getDeleted, getDeletedOffset, getInserted, getInsertedOffset, getMergedVersion, getNext, getParent, getPrev, isMerged, setDeleted, setDeletedOffset, setInserted, setInsertedOffset, setMerged, setNext, setParent, setPrev
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


CharChange(Diff.Change change,
           LineChange parent)
Creates a new character change object using the result of the diff calculation.

change - Result of the diff calculation.
parent - Line change this character change belongs to.
See Also:
Change.Change(Diff.Change,Change), Diff.Change, LineChange