Package net.sf.okapi.common.resource
Class SegmentComparator
- java.lang.Object
-
- net.sf.okapi.common.resource.SegmentComparator
-
- All Implemented Interfaces:
Comparator<Segment>
public class SegmentComparator extends Object implements Comparator<Segment>
-
-
Constructor Summary
Constructors Constructor Description SegmentComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Segment orig, Segment 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(Segment orig, Segment 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<Segment>
-
-