Class AtomContainerComparator
java.lang.Object
org.openscience.cdk.tools.manipulator.AtomContainerComparator
- All Implemented Interfaces:
Comparator<IAtomContainer>
Compares two IAtomContainers for order with the following criteria with decreasing priority:
- Compare atom count
- Compare molecular weight (heavy atoms only)
- Compare bond count
- Compare sum of bond orders (heavy atoms only)
If no difference can be found with the above criteria, the IAtomContainers are considered equal.
- Author:
- Andreas Schueller
- Created on:
- 2007-09-05
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AtomContainerComparator
public AtomContainerComparator()Creates a new instance of AtomContainerComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<IAtomContainer>
-