A
- public class AtomicNumberRule<A> extends AbstractPriorityRule<A>
AtomicNumberAccessor
) can be provided to
allow the comparator to work on a custom atom type.PriorityRule.Type
Constructor and Description |
---|
AtomicNumberRule(AtomicNumberAccessor<A> accessor)
Constructs an atomic number comparator that uses the provided accessor to
fetch the atomic number for a given atom.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Ligand<A> o1,
Ligand<A> o2)
Compares the ligands by their atoms atomic numbers.
|
compare, compareLigands, getRuleType, getSorter, getType, isHalted, prioritise, recursiveCompare, setHalt, setSorter
public AtomicNumberRule(AtomicNumberAccessor<A> accessor)
accessor
- an accessor for the atom's atomic number