org.crosswire.common.diff
Class CommonMiddle
java.lang.Object
org.crosswire.common.diff.CommonMiddle
public class CommonMiddle
- extends Object
A CommonMiddle represents an overlap between a baseline/source text and a
changed/target text.
- Author:
- DM Smith
- See Also:
for license details.
The copyright to this program is held by it's authors.
Constructor Summary |
CommonMiddle(String sourcePrefix,
String sourceSuffix,
String targetPrefix,
String targetSuffix,
String commonality)
A CommonMiddle represents an overlap between a baseline/source text and a
changed/target text. |
sourcePrefix
private String sourcePrefix
sourceSuffix
private String sourceSuffix
targetPrefix
private String targetPrefix
targetSuffix
private String targetSuffix
commonality
private String commonality
CommonMiddle
public CommonMiddle(String sourcePrefix,
String sourceSuffix,
String targetPrefix,
String targetSuffix,
String commonality)
- A CommonMiddle represents an overlap between a baseline/source text and a
changed/target text.
- Parameters:
sourcePrefix
- The text before the commonality form the sourcesourceSuffix
- The text after the commonality form the sourcetargetPrefix
- The text before the commonality form the targettargetSuffix
- The text after the commonality form the targetcommonality
- The text in common
getSourcePrefix
public String getSourcePrefix()
- Returns:
- the source start
getTargetPrefix
public String getTargetPrefix()
- Returns:
- the target start
getCommonality
public String getCommonality()
- Returns:
- the commonality
getSourceSuffix
public String getSourceSuffix()
- Returns:
- the source end
getTargetSuffix
public String getTargetSuffix()
- Returns:
- the target end
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object