Package ucar.units

Class UnitDBManager

    • Constructor Detail

      • UnitDBManager

        public UnitDBManager()
    • 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.