public static class BvParameters.Builder extends Object implements ParameterBuilder<BvParameters>
Constructor and Description |
---|
Builder()
Constructor with default settings.
|
Builder(BvParameters parameters)
Construct to represent the state of a parameter object instance.
|
Modifier and Type | Method and Description |
---|---|
BvParameters |
build()
Constructs an immutable instance of T.
|
BvParameters.Builder |
endianness(BinaryVectors.Endianness endianness)
Set endianness of packing operations.
|
BvParameters.Builder |
length(int length)
Set fingerprint length.
|
BvParameters.Builder |
stringFormat(BvParameters.StringFormat stringFormat)
Set String format.
|
public Builder()
public Builder(BvParameters parameters)
parameters
- Parameter objectpublic BvParameters.Builder length(int length)
length
- Fingerprint length (number of bits)IllegalArgumentException
- when the set length is not a positive number, or not multiply of 64public BvParameters.Builder stringFormat(BvParameters.StringFormat stringFormat)
stringFormat
- String format to usepublic BvParameters.Builder endianness(BinaryVectors.Endianness endianness)
endianness
- Endianness of the packing operationspublic BvParameters build()
ParameterBuilder
build
in interface ParameterBuilder<BvParameters>