© 2006-2007 ETH Zurich

org.ximtec.igesture.util
Class diff_match_patch.Diff

java.lang.Object
  extended by org.ximtec.igesture.util.diff_match_patch.Diff
Enclosing class:
diff_match_patch

public static class diff_match_patch.Diff
extends Object

Class representing one diff operation.


Field Summary
 diff_match_patch.Operation operation
          One of: INSERT, DELETE or EQUAL.
 String text
          The text associated with this diff operation.
 
Constructor Summary
diff_match_patch.Diff(diff_match_patch.Operation operation, String text)
          Constructor.
 
Method Summary
 boolean equals(Object d)
          Is this Diff equivalent to another Diff?
 String toString()
          Display a human-readable version of this Diff.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

operation

public diff_match_patch.Operation operation
One of: INSERT, DELETE or EQUAL.


text

public String text
The text associated with this diff operation.

Constructor Detail

diff_match_patch.Diff

public diff_match_patch.Diff(diff_match_patch.Operation operation,
                             String text)
Constructor. Initializes the diff with the provided values.

Parameters:
operation - One of INSERT, DELETE or EQUAL.
text - The text being applied.
Method Detail

toString

public String toString()
Display a human-readable version of this Diff.

Overrides:
toString in class Object
Returns:
text version.

equals

public boolean equals(Object d)
Is this Diff equivalent to another Diff?

Overrides:
equals in class Object
Parameters:
d - Another Diff to compare against.
Returns:
true or false.

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.