Package chemaxon.jep
Class ConstantTableBuilder
java.lang.Object
chemaxon.jep.ConstantTableBuilder
A builder for a
ConstantTable
.
Mutable objects passed to the add(java.lang.String, java.lang.String)
methods are cloned before returning.-
Method Summary
Modifier and TypeMethodDescriptionAdds a double constant to this builder.Adds a molecule constant to this builder.Adds a molecule array constant to this builder.Adds a string constant to this builder.addAll
(ConstantTable table) Adds all constants in the given table to this builder.build()
Creates a new constant table based on this builder.
-
Method Details
-
add
Adds a string constant to this builder.- Returns:
- this builder
-
add
Adds a double constant to this builder.- Returns:
- this builder
-
add
Adds a molecule constant to this builder. The molecule is cloned.- Returns:
- this builder
-
add
Adds a molecule array constant to this builder. The array and each molecule are cloned.- Returns:
- this builder
-
addAll
Adds all constants in the given table to this builder.- Returns:
- this builder
-
build
Creates a new constant table based on this builder.- Returns:
- the new table
-