Package ucar.units
Class UnitDBManager
- java.lang.Object
-
- ucar.units.UnitDBManager
-
- All Implemented Interfaces:
Serializable
public final class UnitDBManager extends Object implements Serializable
Provides support for managing a default unit database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnitDBManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnitDB
instance()
Gets the default unit database.static void
setInstance(UnitDB instance)
Sets the default unit database.
-
-
-
Method Detail
-
instance
public static UnitDB instance() throws UnitDBException
Gets the default unit database.- Returns:
- The default unit database.
- Throws:
UnitDBException
- The default unit database couldn't be created.
-
setInstance
public static void setInstance(UnitDB instance)
Sets the default unit database. You'd better know what you're doing if you call this method!- Parameters:
instance
- The unit database to be made the default one.
-
-