Class RingSizeComparator

java.lang.Object
org.openscience.cdk.tools.manipulator.RingSizeComparator
All Implemented Interfaces:
Comparator<IRing>

public class RingSizeComparator extends Object implements Comparator<IRing>
Source code:
main
Belongs to CDK module:
standard
  • Field Details

    • LARGE_FIRST

      public static final int LARGE_FIRST
      Flag to denote that the set is order with the largest ring first
      See Also:
    • SMALL_FIRST

      public static final int SMALL_FIRST
      Flag to denote that the set is order with the smallest ring first
      See Also:
  • Constructor Details

    • RingSizeComparator

      public RingSizeComparator(int order)
      Constructs a new comparator to sort rings by size.
      Parameters:
      order - Sort order: either RingSet.SMALL_FIRST or RingSet.LARGE_FIRST.
  • Method Details