public interface PrefixDB
| Modifier and Type | Method and Description |
|---|---|
void |
addName(java.lang.String name,
double value)
Adds a prefix to the database by name.
|
void |
addSymbol(java.lang.String symbol,
double value)
Adds a prefix to the database by symbol.
|
Prefix |
getPrefixByName(java.lang.String name)
Gets a prefix from the database by name.
|
Prefix |
getPrefixBySymbol(java.lang.String symbol)
Gets a prefix from the database by symbol.
|
Prefix |
getPrefixByValue(double value)
Gets a prefix from the database by value.
|
java.util.Iterator<?> |
iterator()
Gets an iterator over the entries in the database.
|
java.lang.String |
toString()
Gets a string representation of this database.
|
void addName(java.lang.String name,
double value)
throws PrefixExistsException,
PrefixDBAccessException
name - The name of the prefix.value - The value of the prefix.PrefixExistsException - A prefix with the same name already exists in the database.PrefixDBAccessException - Prefix database access failure.void addSymbol(java.lang.String symbol,
double value)
throws PrefixExistsException,
PrefixDBAccessException
symbol - The symbol for the prefix.value - The value of the prefix.PrefixExistsException - A prefix with the same symbol already exists in the database.PrefixDBAccessException - Prefix database access failure.Prefix getPrefixByName(java.lang.String name) throws PrefixDBAccessException
name - The name of the prefix.PrefixDBAccessException - Prefix database access failure.Prefix getPrefixBySymbol(java.lang.String symbol) throws PrefixDBAccessException
symbol - The symbol for the prefix.PrefixDBAccessException - Prefix database access failure.Prefix getPrefixByValue(double value) throws PrefixDBAccessException
value - The value for the prefix.PrefixDBAccessException - Prefix database access failure.java.lang.String toString()
toString in class java.lang.Objectjava.util.Iterator<?> iterator()