Package ucar.units
Class UnitSystemManager
- java.lang.Object
-
- ucar.units.UnitSystemManager
-
- All Implemented Interfaces:
Serializable
public final class UnitSystemManager extends Object implements Serializable
Provides support for managing a UnitSystem.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnitSystemManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnitSystem
instance()
Returns an instance of the system of units.static void
setInstance(UnitSystem instance)
Sets the system of units.
-
-
-
Method Detail
-
instance
public static UnitSystem instance() throws UnitSystemException
Returns an instance of the system of units.- Returns:
- An instance of the system of units.
- Throws:
UnitSystemException
-
setInstance
public static void setInstance(UnitSystem instance) throws UnitSystemException
Sets the system of units. This must be called before any call toinstance()
.- Parameters:
instance
- The system of units.- Throws:
UnitSystemException
-instance()
was called earlier.
-
-