com.pmease.quickbuild.web.page.source.diff
Class DiffMatchPatch.Diff

java.lang.Object
  extended by com.pmease.quickbuild.web.page.source.diff.DiffMatchPatch.Diff
Enclosing class:
DiffMatchPatch

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

Class representing one diff operation.


Field Summary
 DiffMatchPatch.Operation operation
          One of: INSERT, DELETE or EQUAL.
 java.lang.String text
          The text associated with this diff operation.
 
Constructor Summary
DiffMatchPatch.Diff(DiffMatchPatch.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
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

operation

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


text

public java.lang.String text
The text associated with this diff operation.

Constructor Detail

DiffMatchPatch.Diff

public DiffMatchPatch.Diff(DiffMatchPatch.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

toString

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

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

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.


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.