jklustor-all-api-0.0.7-20140619012755 (ChemAxon)


com.chemaxon.descriptors.vectors.binary
Class BvParameters.Builder

Object
  extended by com.chemaxon.descriptors.vectors.binary.BvParameters.Builder
All Implemented Interfaces:
ParameterBuilder<BvParameters>
Enclosing class:
BvParameters

public static class BvParameters.Builder
extends Object
implements ParameterBuilder<BvParameters>

Builder for BvParameters.


Constructor Summary
BvParameters.Builder()
          Constructor with default settings.
BvParameters.Builder(BvParameters parameters)
          Construct to represent the state of a parameter object instance.
 
Method Summary
 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BvParameters.Builder

public BvParameters.Builder()
Constructor with default settings.


BvParameters.Builder

public BvParameters.Builder(BvParameters parameters)
Construct to represent the state of a parameter object instance.

Parameters:
parameters - Parameter object
Method Detail

length

public BvParameters.Builder length(int 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

public BvParameters.Builder stringFormat(BvParameters.StringFormat stringFormat)
Set String format.

Parameters:
stringFormat - String format to use
Returns:
Reference to this builder

endianness

public BvParameters.Builder endianness(BinaryVectors.Endianness endianness)
Set endianness of packing operations.

Parameters:
endianness - Endianness of the packing operations
Returns:
Reference to this builder

build

public BvParameters build()
Description copied from interface: ParameterBuilder
Constructs an immutable instance of T.

Specified by:
build in interface ParameterBuilder<BvParameters>
Returns:
An immutable instance of T

jklustor-all-api-0.0.7-20140619012755 (ChemAxon)