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

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

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

Class representing one patch operation.


Field Summary
 java.util.LinkedList<DiffMatchPatch.Diff> diffs
           
 int length1
           
 int length2
           
 int start1
           
 int start2
           
 
Constructor Summary
DiffMatchPatch.Patch()
          Constructor.
 
Method Summary
 java.lang.String toString()
          Emmulate GNU diff's format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

diffs

public java.util.LinkedList<DiffMatchPatch.Diff> diffs

start1

public int start1

start2

public int start2

length1

public int length1

length2

public int length2
Constructor Detail

DiffMatchPatch.Patch

public DiffMatchPatch.Patch()
Constructor. Initializes with an empty list of diffs.

Method Detail

toString

public java.lang.String toString()
Emmulate GNU diff's format. Header: @@ -382,8 +481,9 @@ Indicies are printed as 1-based, not 0-based.

Overrides:
toString in class java.lang.Object
Returns:
The GNU diff string.


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