public interface IChemObjectBuilder
ICDKObject
instance for a specific
implementation.Modifier and Type | Method and Description |
---|---|
<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.