public interface IChemObjectBuilder
ICDKObject
instance for a specific
implementation.Modifier and Type | Method and Description |
---|---|
IAtom |
newAtom()
Create a new atom using the default constructor.
|
IAtomContainer |
newAtomContainer()
Create a new atom container using the default constructor.
|
IBond |
newBond()
Create a new bond using the default constructor.
|
<T extends ICDKObject> |
newInstance(Class<T> clazz,
Object... params)
Creates a new instance of an
ICDKObject , using the constructor defined by the
given parameters. |
<T extends ICDKObject> T newInstance(Class<T> clazz, Object... params) throws IllegalArgumentException
ICDKObject
, using the constructor defined by the
given parameters.T
- Class of an interface extending ICDKObject
or ICDKObject
itself.clazz
- Interface class to instantiate an instance for.params
- Parameters passed to the constructor of the created instance.IllegalArgumentException
- Exception thrown when the IChemObjectBuilder
builder cannot instantiate the clazz
with the given parameters.IAtom newAtom()
newInstance(IAtom.class)
and should be used for
high throughput applications (e.g. IO).IBond newBond()
newInstance(IAtom.class)
and should be used for
high throughput applications (e.g. IO).IAtomContainer newAtomContainer()
newInstance(IAtom.class)
and should be used for
high throughput applications (e.g. IO).Copyright © 2021. All rights reserved.