Method Summary |
|
public void | accept(RevisionVisitor visitor) Accepts a visitor. |
public synchronized void | addDelta(Delta delta) Adds a delta to this revision. |
public synchronized void | applyTo(List target) Applies the series of deltas in this revision as patches to the given
text. |
public Delta | getDelta(int i) Retrieves a delta from this revision by position.
Parameters: i - the position of the delta to retrieve. |
public synchronized void | insertDelta(Delta delta) Adds a delta to the start of this revision. |
public Object[] | patch(Object[] src) Applies the series of deltas in this revision as patches to the given
text.
Parameters: src - the text to patch, which the method doesn't change. |
public int | size() Returns the number of deltas in this revision. |
public synchronized void | toRCSString(StringBuffer s, String EOL) Converts this revision into its RCS style string representation. |
public void | toRCSString(StringBuffer s) Converts this revision into its RCS style string representation. |
public String | toRCSString(String EOL) Converts this delta into its RCS style string representation. |
public String | toRCSString() Converts this delta into its RCS style string representation using the
default line separator. |
public synchronized void | toString(StringBuffer s) Converts this revision into its Unix diff style string representation. |