@TestClass(value="org.openscience.cdk.tools.manipulator.RingSizeComparatorTest") public class RingSizeComparator extends Object implements Comparator<IRing>
Modifier and Type | Field and Description |
---|---|
static int |
LARGE_FIRST
Flag to denote that the set is order with the largest ring first
|
static int |
SMALL_FIRST
Flag to denote that the set is order with the smallest ring first
|
Constructor and Description |
---|
RingSizeComparator(int order)
Constructs a new comparator to sort rings by size.
|
public static final int LARGE_FIRST
public static final int SMALL_FIRST
public RingSizeComparator(int order)
order
- Sort order: either RingSet.SMALL_FIRST or
RingSet.LARGE_FIRST.@TestMethod(value="testCompare") public int compare(IRing object1, IRing object2) throws ClassCastException
compare
in interface Comparator<IRing>
ClassCastException