Package net.sf.okapi.common.resource
Class TextPartComparator
- java.lang.Object
-
- net.sf.okapi.common.resource.TextPartComparator
-
- All Implemented Interfaces:
Comparator<TextPart>
public class TextPartComparator extends Object implements Comparator<TextPart>
-
-
Constructor Summary
Constructors Constructor Description TextPartComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(TextPart orig, TextPart trans)
Match on id and type (segment or not) or TextFragment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(TextPart orig, TextPart trans)
Match on id and type (segment or not) or TextFragment. If no id exists match on TextFragment (including all codes)- Specified by:
compare
in interfaceComparator<TextPart>
-
-