Toolkit-mobile-templates  2.0.0
This repository contains the template applications of the toolkit.
Public Member Functions | Public Attributes | List of all members
name.fraser.neil.plaintext.diff_match_patch.Diff Class Reference
Collaboration diagram for name.fraser.neil.plaintext.diff_match_patch.Diff:
Collaboration graph
[legend]

Public Member Functions

 Diff (Operation operation, String text)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Public Attributes

Operation operation
 
String text
 

Detailed Description

Class representing one diff operation.

Constructor & Destructor Documentation

name.fraser.neil.plaintext.diff_match_patch.Diff.Diff ( Operation  operation,
String  text 
)

Constructor. Initializes the diff with the provided values.

Parameters
operationOne of INSERT, DELETE or EQUAL.
textThe text being applied.

Member Function Documentation

boolean name.fraser.neil.plaintext.diff_match_patch.Diff.equals ( Object  obj)

Is this Diff equivalent to another Diff?

Parameters
objAnother Diff to compare against.
Returns
true or false.
int name.fraser.neil.plaintext.diff_match_patch.Diff.hashCode ( )

Create a numeric hash value for a Diff. This function is not used by DMP.

Returns
Hash value.
String name.fraser.neil.plaintext.diff_match_patch.Diff.toString ( )

Display a human-readable version of this Diff.

Returns
text version.

Member Data Documentation

Operation name.fraser.neil.plaintext.diff_match_patch.Diff.operation

One of: INSERT, DELETE or EQUAL.

String name.fraser.neil.plaintext.diff_match_patch.Diff.text

The text associated with this diff operation.


The documentation for this class was generated from the following file: