Class BvParameters.Builder
java.lang.Object
com.chemaxon.descriptors.vectors.binary.BvParameters.Builder
- All Implemented Interfaces:
ParameterBuilder<BvParameters>
- Enclosing class:
- BvParameters
Builder for BvParameters.
-
Constructor Summary
ConstructorDescriptionBuilder()
Constructor with default settings.Builder
(BvParameters parameters) Construct to represent the state of a parameter object instance. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs an immutable instance of T.endianness
(BinaryVectors.Endianness endianness) Set endianness of packing operations.length
(int length) Set fingerprint length.stringFormat
(BvParameters.StringFormat stringFormat) Set String format.
-
Constructor Details
-
Builder
public Builder()Constructor with default settings. -
Builder
Construct to represent the state of a parameter object instance.- Parameters:
parameters
- Parameter object
-
-
Method Details
-
length
Set fingerprint length.- Parameters:
length
- Fingerprint length (number of bits)- Returns:
- Reference to this builder
- Throws:
IllegalArgumentException
- when the set length is not a positive number, or not multiply of 64
-
stringFormat
Set String format.- Parameters:
stringFormat
- String format to use- Returns:
- Reference to this builder
-
endianness
Set endianness of packing operations.- Parameters:
endianness
- Endianness of the packing operations- Returns:
- Reference to this builder
-
build
Description copied from interface:ParameterBuilder
Constructs an immutable instance of T.- Specified by:
build
in interfaceParameterBuilder<BvParameters>
- Returns:
- An immutable instance of T
-