Class EcfpParameters.Builder
java.lang.Object
com.chemaxon.descriptors.fingerprints.ecfp.EcfpParameters.Builder
- All Implemented Interfaces:
ParameterBuilder<EcfpParameters>
- Enclosing class:
- EcfpParameters
public static class EcfpParameters.Builder
extends Object
implements ParameterBuilder<EcfpParameters>
Builder class for the immutable parameter object.
-
Constructor Summary
ConstructorDescriptionBuilder()
Constructor with default settings.Builder
(EcfpParameters parameters) Constructor based on a parameter object. -
Method Summary
Modifier and TypeMethodDescriptionatomTypizer
(EcfpAtomTypizers atomTypizer) Set atom typizer to use.build()
Constructs an immutable instance of T.diameter
(int diameter) Sets diameter.identifierConfigurationXml
(String identifierConfigurationXml) Set identifier configuration XML to use for custom typizer.length
(int length) Set fingerprint length, the bit count of the folded binary fingerprint representation.
-
Constructor Details
-
Builder
public Builder()Constructor with default settings. -
Builder
Constructor based on a parameter object.- Parameters:
parameters
- Parameter object
-
-
Method Details
-
diameter
Sets diameter.- Parameters:
diameter
- Diameter to set- Returns:
- Reference to this builder
- Throws:
IllegalArgumentException
- when the set diameter is a negative or odd number
-
length
Set fingerprint length, the bit count of the folded binary fingerprint representation.- Parameters:
length
- new length- Returns:
- Reference to this builder
- Throws:
IllegalArgumentException
- when the set length is not a positive number, or not multiply of 32
-
atomTypizer
Set atom typizer to use.- Parameters:
atomTypizer
- Atom typizer to use. Note that whenEcfpAtomTypizers.CUSTOMXML
is used then the identifier configuration must be set by#identifierConfigurationXmlForCustom(java.lang.String)
.- Returns:
- Reference to this builder
-
identifierConfigurationXml
Set identifier configuration XML to use for custom typizer.Do not forget to set
EcfpAtomTypizers.CUSTOMXML
withatomTypizer(com.chemaxon.descriptors.fingerprints.ecfp.EcfpAtomTypizers)
.- Parameters:
identifierConfigurationXml
- Identifier configuration XML.- Returns:
- Reference to this builder.
-
build
Description copied from interface:ParameterBuilder
Constructs an immutable instance of T.- Specified by:
build
in interfaceParameterBuilder<EcfpParameters>
- Returns:
- An immutable instance of T
-