com.jaxfront.core.util.diff
Class diff_match_patch.Diff

java.lang.Object
  extended by com.jaxfront.core.util.diff.diff_match_patch.Diff
Enclosing class:
diff_match_patch

public static class diff_match_patch.Diff
extends java.lang.Object

Class representing one diff operation.


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

Field Detail

operation

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


text

public java.lang.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,
                             java.lang.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

equals

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

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

toString

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

Overrides:
toString in class java.lang.Object
Returns:
text version.