Package chemaxon.sss.screen
Class HashCode
java.lang.Object
chemaxon.sss.screen.HashCode
Hash code generator for molecules. Explicit hydrogens are not considered.
NOTE: this class is not thread safe for the sake of efficiency, multiple threads should use multiple instances.
NOTE: this class is not thread safe for the sake of efficiency, multiple threads should use multiple instances.
- Since:
- JChem 3.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getHashCode
(Molecule mol) Gets hash code with default recursion level.int
getHashCode
(Molecule mol, int recursion) Gets the hash code.int
getHashCode
(Molecule mol, int[] fp) Gets hash code with default recursion level.int
getHashCode
(Molecule mol, int[] fp, int recursion) Gets the hash code.
-
Field Details
-
DEFAULT_RECURSION_LEVEL
public static final int DEFAULT_RECURSION_LEVEL- See Also:
-
-
Constructor Details
-
HashCode
public HashCode()Creates a new instance of HashCode
-
-
Method Details
-
getHashCode
Gets hash code with default recursion level.- Parameters:
mol
- the molecule- Returns:
- the hash code
- See Also:
-
getHashCode
Gets the hash code.- Parameters:
mol
- the moleculerecursion
- the maximum level of recursion. Increase for better diversity, decrease for speed. Specify 1 or more.- Returns:
- the hash code
- See Also:
-
getHashCode
Gets hash code with default recursion level.- Parameters:
mol
- the moleculefp
- the fingerprints in integers- Returns:
- the hash code
- See Also:
-
getHashCode
Gets the hash code.- Parameters:
mol
- the moleculefp
- the fingerprints in integersrecursion
- the maximum level of recursion. Increase for better diversity, decrease for speed. Specify 1 or more.- Returns:
- the hash code
- See Also:
-