@Beta @PublicAPI public class MolInputBuilder extends Object
Please note that this class is marked with @Beta annotation, so it can be subject of incompatible changes or removal in later releases.
Constructor and Description |
---|
MolInputBuilder()
Construct an empty builder.
|
MolInputBuilder(Collection<? extends Molecule> mols)
Construct a builder with stored structures.
|
Modifier and Type | Method and Description |
---|---|
int |
addMolecule(Molecule m)
Add a new structure.
|
int |
addMolecules(Collection<? extends Molecule> mols)
Add multiple structures.
|
int |
addMolecules(Iterator<? extends Molecule> mols)
Add multiple structures.
|
int |
addMolecules(Iterator<? extends Molecule> mols,
StandardizerWrapper standardize)
Add multiple structures with preprocessing.
|
<D extends Descriptor> |
build(DescriptorGenerator<D> gen,
DescriptorComparator<D> comp)
Build immutable input descriptor.
|
int |
size()
Added structure count.
|
public MolInputBuilder()
public MolInputBuilder(Collection<? extends Molecule> mols)
mols
- Structures to storepublic int addMolecule(Molecule m)
m
- Structure to be addedpublic int addMolecules(Collection<? extends Molecule> mols)
mols
- Structures to be addedpublic int addMolecules(Iterator<? extends Molecule> mols)
mols
- Structures to be addedpublic int addMolecules(Iterator<? extends Molecule> mols, StandardizerWrapper standardize)
mols
- Structures to be addedstandardize
- Standardization to apply on the strucutres. Will be invoked on the iterated
structures without cloning..public <D extends Descriptor> MolInput build(DescriptorGenerator<D> gen, DescriptorComparator<D> comp)
D
- Used descriptorgen
- Generator to usecomp
- Comparator to usepublic int size()