A
- public class MassNumberRule<A> extends AbstractPriorityRule<A>
MassNumberAccessor
) can be provided to allow the comparator to work on a
custom atom type.PriorityRule.Type
Constructor and Description |
---|
MassNumberRule(MassNumberAccessor<A> accessor)
Constructs an mass number comparator that uses the provided accessor to fetch the mass 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 mass numbers.
|
compare, compareLigands, getRuleType, getSorter, getType, isHalted, prioritise, recursiveCompare, setHalt, setSorter
public MassNumberRule(MassNumberAccessor<A> accessor)
accessor
- an accessor for the atom's mass number