Interface ISequenceSubRule<ILigand>
-
- All Superinterfaces:
Comparator<ILigand>
- All Known Implementing Classes:
CIPLigandRule
public interface ISequenceSubRule<ILigand> extends Comparator<ILigand>
Sequence sub rule used in the CIP method to decide which of the two ligands takes precedence [Cahn, R.S. et. al.. Angew. Chem. Int. Ed.. 1966. 5]. A list ordered based on these rules will be sorted from low to high precedence.- Source code:
- main
- Belongs to CDK module:
- cip
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compare(ILigand ligand1, ILigand ligand2)
Compares two ligands according to the particular sequence sub rule.-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
int compare(ILigand ligand1, ILigand ligand2)
Compares two ligands according to the particular sequence sub rule. It returns 1 if ligand1 takes precedence over ligand2, -1 if ligand2 takes precedence over ligand1, and 0 if they are equal.- Specified by:
compare
in interfaceComparator<ILigand>
- Parameters:
ligand1
- the first of the two ligands to compareligand2
- the second of the two ligands to compare- Returns:
- 1 if ligand1 is of higher precedence than ligand2, -1 if ligand2 is of higher precedence than ligan1, and 0 if they have equal precedence
-
-