Class HashGeneratorMaker


  • public final class HashGeneratorMaker
    extends Object
    Fluent API for creating hash generators. The maker is first configured with one or more attributes. Once fully configured the generator is made by invoking atomic(), molecular() or ensemble(). The order of the built-in configuration methods does not matter however when specifying custom encoders with encode(AtomEncoder) the order they are added is the order they will be used. Therefore one can expect different hash codes if there is a change in the order they are specified.
    Examples
     // simple
     MoleculeHashGenerator generator = new HashGeneratorMaker().depth(16)
                                                               .elemental()
                                                               .molecular();
    
     // fast
     MoleculeHashGenerator generator = new HashGeneratorMaker().depth(8)
                                                               .elemental()
                                                               .isotopic()
                                                               .charged()
                                                               .orbital()
                                                               .molecular();
     // comprehensive
     MoleculeHashGenerator generator = new HashGeneratorMaker().depth(32)
                                                               .elemental()
                                                               .isotopic()
                                                               .charged()
                                                               .chiral()
                                                               .perturbed()
                                                               .molecular();
     
    Author:
    John May
    Source code:
    main
    Belongs to CDK module:
    hash