test_class.file: singa-features/src/test/java/bio/singa/features/units/UnitRegistryTest.java
test_class.identifier: UnitRegistryTest
test_case.body: @Test
      void shouldConvertUnit() {
          // time
          Quantity<?> time = UnitRegistry.convert(Quantities.getQuantity(1.0, MINUTE));
          assertEquals(Quantities.getQuantity(6.0E7, UnitRegistry.DEFAULT_TIME.getUnit()), time);
          // area
          Quantity<?> area = UnitRegistry.convert(Quantities.getQuantity(1.0, CENTI(METRE).pow(2)));
          assertEquals(Quantities.getQuantity(1.0E8, UnitRegistry.DEFAULT_SPACE.getUnit().pow(2)), area);
          // concentration
          Quantity<?> concentration = UnitRegistry.convert(Quantities.getQuantity(1.0, MICRO_MOLE_PER_LITRE));
          assertEquals(Quantities.getQuantity(1.0E-12, UnitRegistry.DEFAULT_AMOUNT_OF_SUBSTANCE.getUnit().divide(UnitRegistry.DEFAULT_SPACE.getUnit().pow(3))), concentration);
          // reaction rate
          Quantity<?> reactionRate = UnitRegistry.convert(Quantities.getQuantity(1.0, MICRO_MOLE_PER_LITRE.divide(SECOND)));
          assertEquals(Quantities.getQuantity(1.0E-18, UnitRegistry.DEFAULT_AMOUNT_OF_SUBSTANCE.getUnit().divide(UnitRegistry.DEFAULT_SPACE.getUnit().pow(3).multiply(UnitRegistry.DEFAULT_TIME.getUnit()))), reactionRate);
          // weight
          Quantity<?> weight = UnitRegistry.convert(Quantities.getQuantity(1, KILOGRAM));
          assertEquals(Quantities.getQuantity(1000, UnitRegistry.DEFAULT_MASS_UNIT), weight);
          // diffusivity
          Quantity<?> diffusivity = UnitRegistry.convert(Quantities.getQuantity(1.0, METRE.divide(100).pow(2).divide(SECOND)));
          assertEquals(Quantities.getQuantity(100, UnitRegistry.DEFAULT_SPACE.getUnit().pow(2).divide(UnitRegistry.DEFAULT_TIME.getUnit())), diffusivity);
      }
test_case.class_method_signature: UnitRegistryTest.shouldConvertUnit()
test_case.full_signature: @Test void shouldConvertUnit()
test_case.identifier: shouldConvertUnit
test_case.invocations: convert getQuantity assertEquals getQuantity getUnit convert getQuantity pow CENTI assertEquals getQuantity pow getUnit convert getQuantity assertEquals getQuantity divide getUnit pow getUnit convert getQuantity divide assertEquals getQuantity divide getUnit multiply pow getUnit getUnit convert getQuantity assertEquals getQuantity convert getQuantity divide pow divide assertEquals getQuantity divide pow getUnit getUnit
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldConvertUnit()
focal_class.declarator: DEFAULT_SPACE = Quantities.getQuantity(1.0, MICRO(METRE))
focal_class.modifier: public static final
focal_class.original_string: public static final Quantity<Length> DEFAULT_SPACE = Quantities.getQuantity(1.0, MICRO(METRE));
focal_class.type: Quantity<Length>
focal_class.var_name: DEFAULT_SPACE
focal_class.declarator: DEFAULT_TIME = Quantities.getQuantity(1.0, MICRO(SECOND))
focal_class.modifier: public static final
focal_class.original_string: public static final Quantity<Time> DEFAULT_TIME = Quantities.getQuantity(1.0, MICRO(SECOND));
focal_class.type: Quantity<Time>
focal_class.var_name: DEFAULT_TIME
focal_class.declarator: DEFAULT_AMOUNT_OF_SUBSTANCE = Quantities.getQuantity(1.0, NANO(MOLE))
focal_class.modifier: public static final
focal_class.original_string: public static final Quantity<AmountOfSubstance> DEFAULT_AMOUNT_OF_SUBSTANCE = Quantities.getQuantity(1.0, NANO(MOLE));
focal_class.type: Quantity<AmountOfSubstance>
focal_class.var_name: DEFAULT_AMOUNT_OF_SUBSTANCE
focal_class.declarator: DEFAULT_TEMPERATURE_UNIT = KELVIN
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Temperature> DEFAULT_TEMPERATURE_UNIT = KELVIN;
focal_class.type: Unit<Temperature>
focal_class.var_name: DEFAULT_TEMPERATURE_UNIT
focal_class.declarator: DEFAULT_MASS_UNIT = GRAM
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Mass> DEFAULT_MASS_UNIT = GRAM;
focal_class.type: Unit<Mass>
focal_class.var_name: DEFAULT_MASS_UNIT
focal_class.declarator: DISPLAY_TIME = SECOND
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Time> DISPLAY_TIME = SECOND;
focal_class.type: Unit<Time>
focal_class.var_name: DISPLAY_TIME
focal_class.declarator: DISPLAY_VOLUME = LITRE
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Volume> DISPLAY_VOLUME = LITRE;
focal_class.type: Unit<Volume>
focal_class.var_name: DISPLAY_VOLUME
focal_class.declarator: DISPLAY_AMOUNT = MICRO(MOLE)
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<AmountOfSubstance> DISPLAY_AMOUNT = MICRO(MOLE);
focal_class.type: Unit<AmountOfSubstance>
focal_class.var_name: DISPLAY_AMOUNT
focal_class.declarator: DISPLAY_CONCENTRATION = MICRO_MOLE_PER_LITRE
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<MolarConcentration> DISPLAY_CONCENTRATION = MICRO_MOLE_PER_LITRE;
focal_class.type: Unit<MolarConcentration>
focal_class.var_name: DISPLAY_CONCENTRATION
focal_class.declarator: DISPLAY_LENGTH = MICRO(METRE)
focal_class.modifier: public static final
focal_class.original_string: public static final Unit<Length> DISPLAY_LENGTH = MICRO(METRE);
focal_class.type: Unit<Length>
focal_class.var_name: DISPLAY_LENGTH
focal_class.declarator: instance = getInstance()
focal_class.modifier: private static
focal_class.original_string: private static UnitRegistry instance = getInstance();
focal_class.type: UnitRegistry
focal_class.var_name: instance
focal_class.declarator: space
focal_class.modifier: private
focal_class.original_string: private Quantity<Length> space;
focal_class.type: Quantity<Length>
focal_class.var_name: space
focal_class.declarator: time
focal_class.modifier: private
focal_class.original_string: private Quantity<Time> time;
focal_class.type: Quantity<Time>
focal_class.var_name: time
focal_class.declarator: defaultUnits
focal_class.modifier: private
focal_class.original_string: private Map<Dimension, Unit> defaultUnits;
focal_class.type: Map<Dimension, Unit>
focal_class.var_name: defaultUnits
focal_class.declarator: displayUnits
focal_class.modifier: private
focal_class.original_string: private Map<Dimension, Unit> displayUnits;
focal_class.type: Map<Dimension, Unit>
focal_class.var_name: displayUnits
focal_class.file: singa-features/src/main/java/bio/singa/features/units/UnitRegistry.java
focal_class.identifier: UnitRegistry
focal_class.class_method_signature: UnitRegistry.UnitRegistry()
focal_class.full_signature: private  UnitRegistry()
focal_class.identifier: UnitRegistry
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  UnitRegistry()
focal_class.class_method_signature: UnitRegistry.getInstance()
focal_class.full_signature: private static UnitRegistry getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: UnitRegistry
focal_class.signature: UnitRegistry getInstance()
focal_class.class_method_signature: UnitRegistry.reinitialize()
focal_class.full_signature: public static void reinitialize()
focal_class.identifier: reinitialize
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reinitialize()
focal_class.class_method_signature: UnitRegistry.getSpace()
focal_class.full_signature: public static Quantity<Length> getSpace()
focal_class.identifier: getSpace
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Length>
focal_class.signature: Quantity<Length> getSpace()
focal_class.class_method_signature: UnitRegistry.setSpace(Quantity<Length> space)
focal_class.full_signature: public static void setSpace(Quantity<Length> space)
focal_class.identifier: setSpace
focal_class.modifiers: public static
focal_class.parameters: (Quantity<Length> space)
focal_class.return: void
focal_class.signature: void setSpace(Quantity<Length> space)
focal_class.class_method_signature: UnitRegistry.getSpaceScale()
focal_class.full_signature: public static double getSpaceScale()
focal_class.identifier: getSpaceScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getSpaceScale()
focal_class.class_method_signature: UnitRegistry.getSpaceToPixelScale()
focal_class.full_signature: public static double getSpaceToPixelScale()
focal_class.identifier: getSpaceToPixelScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getSpaceToPixelScale()
focal_class.class_method_signature: UnitRegistry.scaleSpaceToPixel(Quantity<Length> length)
focal_class.full_signature: public static double scaleSpaceToPixel(Quantity<Length> length)
focal_class.identifier: scaleSpaceToPixel
focal_class.modifiers: public static
focal_class.parameters: (Quantity<Length> length)
focal_class.return: double
focal_class.signature: double scaleSpaceToPixel(Quantity<Length> length)
focal_class.class_method_signature: UnitRegistry.getPixelToSpaceScale()
focal_class.full_signature: public static Quantity<Length> getPixelToSpaceScale()
focal_class.identifier: getPixelToSpaceScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Length>
focal_class.signature: Quantity<Length> getPixelToSpaceScale()
focal_class.class_method_signature: UnitRegistry.scalePixelToSpace(double length)
focal_class.full_signature: public static Quantity<Length> scalePixelToSpace(double length)
focal_class.identifier: scalePixelToSpace
focal_class.modifiers: public static
focal_class.parameters: (double length)
focal_class.return: Quantity<Length>
focal_class.signature: Quantity<Length> scalePixelToSpace(double length)
focal_class.class_method_signature: UnitRegistry.setSpaceScale(double scale)
focal_class.full_signature: public static void setSpaceScale(double scale)
focal_class.identifier: setSpaceScale
focal_class.modifiers: public static
focal_class.parameters: (double scale)
focal_class.return: void
focal_class.signature: void setSpaceScale(double scale)
focal_class.class_method_signature: UnitRegistry.getSpaceUnit()
focal_class.full_signature: public static Unit<Length> getSpaceUnit()
focal_class.identifier: getSpaceUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Length>
focal_class.signature: Unit<Length> getSpaceUnit()
focal_class.class_method_signature: UnitRegistry.setSpaceUnit(Unit<Length> unit)
focal_class.full_signature: public static void setSpaceUnit(Unit<Length> unit)
focal_class.identifier: setSpaceUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<Length> unit)
focal_class.return: void
focal_class.signature: void setSpaceUnit(Unit<Length> unit)
focal_class.class_method_signature: UnitRegistry.resetSpace()
focal_class.full_signature: public static void resetSpace()
focal_class.identifier: resetSpace
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetSpace()
focal_class.class_method_signature: UnitRegistry.getTime()
focal_class.full_signature: public static Quantity<Time> getTime()
focal_class.identifier: getTime
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Time>
focal_class.signature: Quantity<Time> getTime()
focal_class.class_method_signature: UnitRegistry.setTime(Quantity<Time> time)
focal_class.full_signature: public static void setTime(Quantity<Time> time)
focal_class.identifier: setTime
focal_class.modifiers: public static
focal_class.parameters: (Quantity<Time> time)
focal_class.return: void
focal_class.signature: void setTime(Quantity<Time> time)
focal_class.class_method_signature: UnitRegistry.getTimeScale()
focal_class.full_signature: public static double getTimeScale()
focal_class.identifier: getTimeScale
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getTimeScale()
focal_class.class_method_signature: UnitRegistry.setTimeScale(double scale)
focal_class.full_signature: public static void setTimeScale(double scale)
focal_class.identifier: setTimeScale
focal_class.modifiers: public static
focal_class.parameters: (double scale)
focal_class.return: void
focal_class.signature: void setTimeScale(double scale)
focal_class.class_method_signature: UnitRegistry.getTimeUnit()
focal_class.full_signature: public static Unit<Time> getTimeUnit()
focal_class.identifier: getTimeUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Time>
focal_class.signature: Unit<Time> getTimeUnit()
focal_class.class_method_signature: UnitRegistry.setTimeUnit(Unit<Time> unit)
focal_class.full_signature: public static void setTimeUnit(Unit<Time> unit)
focal_class.identifier: setTimeUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<Time> unit)
focal_class.return: void
focal_class.signature: void setTimeUnit(Unit<Time> unit)
focal_class.class_method_signature: UnitRegistry.resetTime()
focal_class.full_signature: public static void resetTime()
focal_class.identifier: resetTime
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetTime()
focal_class.class_method_signature: UnitRegistry.setUnit(Unit<?> unit)
focal_class.full_signature: public static void setUnit(Unit<?> unit)
focal_class.identifier: setUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: void
focal_class.signature: void setUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.getConcentrationUnit()
focal_class.full_signature: public static Unit<MolarConcentration> getConcentrationUnit()
focal_class.identifier: getConcentrationUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<MolarConcentration>
focal_class.signature: Unit<MolarConcentration> getConcentrationUnit()
focal_class.class_method_signature: UnitRegistry.getAreaUnit()
focal_class.full_signature: public static Unit<Area> getAreaUnit()
focal_class.identifier: getAreaUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Area>
focal_class.signature: Unit<Area> getAreaUnit()
focal_class.class_method_signature: UnitRegistry.getArea()
focal_class.full_signature: public static Quantity<Area> getArea()
focal_class.identifier: getArea
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Area>
focal_class.signature: Quantity<Area> getArea()
focal_class.class_method_signature: UnitRegistry.getVolumeUnit()
focal_class.full_signature: public static Unit<Volume> getVolumeUnit()
focal_class.identifier: getVolumeUnit
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Unit<Volume>
focal_class.signature: Unit<Volume> getVolumeUnit()
focal_class.class_method_signature: UnitRegistry.getVolume()
focal_class.full_signature: public static Quantity<Volume> getVolume()
focal_class.identifier: getVolume
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Quantity<Volume>
focal_class.signature: Quantity<Volume> getVolume()
focal_class.class_method_signature: UnitRegistry.concentration(double value)
focal_class.full_signature: public static Quantity<MolarConcentration> concentration(double value)
focal_class.identifier: concentration
focal_class.modifiers: public static
focal_class.parameters: (double value)
focal_class.return: Quantity<MolarConcentration>
focal_class.signature: Quantity<MolarConcentration> concentration(double value)
focal_class.class_method_signature: UnitRegistry.concentration(double value, Unit<MolarConcentration> unit)
focal_class.full_signature: public static Quantity<MolarConcentration> concentration(double value, Unit<MolarConcentration> unit)
focal_class.identifier: concentration
focal_class.modifiers: public static
focal_class.parameters: (double value, Unit<MolarConcentration> unit)
focal_class.return: Quantity<MolarConcentration>
focal_class.signature: Quantity<MolarConcentration> concentration(double value, Unit<MolarConcentration> unit)
focal_class.class_method_signature: UnitRegistry.humanReadable(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> humanReadable(Quantity<QuantityType> quantity)
focal_class.identifier: humanReadable
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> humanReadable(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.humanReadable(double concentration)
focal_class.full_signature: public static Quantity<MolarConcentration> humanReadable(double concentration)
focal_class.identifier: humanReadable
focal_class.modifiers: public static
focal_class.parameters: (double concentration)
focal_class.return: Quantity<MolarConcentration>
focal_class.signature: Quantity<MolarConcentration> humanReadable(double concentration)
focal_class.class_method_signature: UnitRegistry.scale(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> scale(Quantity<QuantityType> quantity)
focal_class.identifier: scale
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> scale(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.scaleForPixel(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> scaleForPixel(Quantity<QuantityType> quantity)
focal_class.identifier: scaleForPixel
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> scaleForPixel(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.scaleTime(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> scaleTime(Quantity<QuantityType> quantity)
focal_class.identifier: scaleTime
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> scaleTime(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.convert(Quantity<QuantityType> quantity)
focal_class.full_signature: public static Quantity<QuantityType> convert(Quantity<QuantityType> quantity)
focal_class.identifier: convert
focal_class.modifiers: public static
focal_class.parameters: (Quantity<QuantityType> quantity)
focal_class.return: Quantity<QuantityType>
focal_class.signature: Quantity<QuantityType> convert(Quantity<QuantityType> quantity)
focal_class.class_method_signature: UnitRegistry.rescaleRegisteredUnits()
focal_class.full_signature: private static void rescaleRegisteredUnits()
focal_class.identifier: rescaleRegisteredUnits
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void rescaleRegisteredUnits()
focal_class.class_method_signature: UnitRegistry.getDefaultUnit(Unit<UnitType> unit)
focal_class.full_signature: public static Unit<UnitType> getDefaultUnit(Unit<UnitType> unit)
focal_class.identifier: getDefaultUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<UnitType> unit)
focal_class.return: Unit<UnitType>
focal_class.signature: Unit<UnitType> getDefaultUnit(Unit<UnitType> unit)
focal_class.class_method_signature: UnitRegistry.addUnitForDimension(Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.full_signature: private static void addUnitForDimension(Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.identifier: addUnitForDimension
focal_class.modifiers: private static
focal_class.parameters: (Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.return: void
focal_class.signature: void addUnitForDimension(Dimension dimension, Map<Dimension, Unit> unitMap)
focal_class.class_method_signature: UnitRegistry.getPreferredUnit(Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.full_signature: private static Unit getPreferredUnit(Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.identifier: getPreferredUnit
focal_class.modifiers: private static
focal_class.parameters: (Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.return: Unit
focal_class.signature: Unit getPreferredUnit(Dimension baseDimension, int exponent, Map<Dimension, Unit> unitMap)
focal_class.class_method_signature: UnitRegistry.getTimeExponent(Unit<?> unit)
focal_class.full_signature: public static int getTimeExponent(Unit<?> unit)
focal_class.identifier: getTimeExponent
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: int
focal_class.signature: int getTimeExponent(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.getSpaceExponent(Unit<?> unit)
focal_class.full_signature: public static int getSpaceExponent(Unit<?> unit)
focal_class.identifier: getSpaceExponent
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: int
focal_class.signature: int getSpaceExponent(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.getExponent(Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.full_signature: private static int getExponent(Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.identifier: getExponent
focal_class.modifiers: private static
focal_class.parameters: (Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.return: int
focal_class.signature: int getExponent(Unit<?> testUnit, Unit<?> requiredUnit)
focal_class.class_method_signature: UnitRegistry.getDefaultUnits()
focal_class.full_signature: public static Map<Dimension, Unit> getDefaultUnits()
focal_class.identifier: getDefaultUnits
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Map<Dimension, Unit>
focal_class.signature: Map<Dimension, Unit> getDefaultUnits()
focal_class.class_method_signature: UnitRegistry.isTimeUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isTimeUnit(Unit<?> unit)
focal_class.identifier: isTimeUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isTimeUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isInverseTimeUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isInverseTimeUnit(Unit<?> unit)
focal_class.identifier: isInverseTimeUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isInverseTimeUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isLengthUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isLengthUnit(Unit<?> unit)
focal_class.identifier: isLengthUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isLengthUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isSubstanceUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isSubstanceUnit(Unit<?> unit)
focal_class.identifier: isSubstanceUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isSubstanceUnit(Unit<?> unit)
focal_class.class_method_signature: UnitRegistry.isConcentrationUnit(Unit<?> unit)
focal_class.full_signature: public static boolean isConcentrationUnit(Unit<?> unit)
focal_class.identifier: isConcentrationUnit
focal_class.modifiers: public static
focal_class.parameters: (Unit<?> unit)
focal_class.return: boolean
focal_class.signature: boolean isConcentrationUnit(Unit<?> unit)
focal_method.body: public static <QuantityType extends Quantity<QuantityType>> Quantity<QuantityType> convert(Quantity<QuantityType> quantity) {
          Dimension dimension = quantity.getUnit().getDimension();
          if (!getInstance().defaultUnits.containsKey(dimension)) {
              // not base unit and not registered
              addUnitForDimension(dimension, getInstance().defaultUnits);
          }
          return quantity.to(getInstance().defaultUnits.get(dimension));
      }
focal_method.class_method_signature: UnitRegistry.convert(Quantity<QuantityType> quantity)
focal_method.full_signature: public static Quantity<QuantityType> convert(Quantity<QuantityType> quantity)
focal_method.identifier: convert
focal_method.invocations: getDimension getUnit containsKey getInstance addUnitForDimension getInstance to get getInstance
focal_method.modifiers: public static
focal_method.parameters: (Quantity<QuantityType> quantity)
focal_method.return: Quantity<QuantityType>
focal_method.signature: Quantity<QuantityType> convert(Quantity<QuantityType> quantity)