Package net.sf.okapi.common.resource
Class CodeComparatorOnIsolated
- java.lang.Object
-
- net.sf.okapi.common.resource.CodeComparatorOnIsolated
-
- All Implemented Interfaces:
Comparator<Code>
public class CodeComparatorOnIsolated extends Object implements Comparator<Code>
-
-
Field Summary
Fields Modifier and Type Field Description static CodeComparatorOnTagTypeCMP_TAG_TYPE
-
Constructor Summary
Constructors Constructor Description CodeComparatorOnIsolated(CodeMatches codeMatches)CodeComparatorOnIsolated(CodeMatches codeMatches, boolean matchIsolatedOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Code c1, Code c2)voidsetFromIndex(int index)voidsetToIndex(int index)-
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
-
-
-
-
Field Detail
-
CMP_TAG_TYPE
public static final CodeComparatorOnTagType CMP_TAG_TYPE
-
-
Constructor Detail
-
CodeComparatorOnIsolated
public CodeComparatorOnIsolated(CodeMatches codeMatches)
-
CodeComparatorOnIsolated
public CodeComparatorOnIsolated(CodeMatches codeMatches, boolean matchIsolatedOnly)
-
-
Method Detail
-
setToIndex
public void setToIndex(int index)
-
setFromIndex
public void setFromIndex(int index)
-
compare
public int compare(Code c1, Code c2)
- Specified by:
comparein interfaceComparator<Code>
-
-