| Package | Description |
|---|---|
| com.hfg.units |
| Modifier and Type | Field and Description |
|---|---|
static QuantityType |
QuantityType.ABSORBANCE |
static QuantityType |
QuantityType.AMOUNT_OF_SUBSTANCE |
static QuantityType |
QuantityType.AREA |
static QuantityType |
QuantityType.BIOLOGICAL_POTENCY |
static QuantityType |
QuantityType.CATALYTIC_ACTIVITY |
static QuantityType |
QuantityType.CONCENTRATION |
static QuantityType |
QuantityType.DENSITY |
static QuantityType |
QuantityType.ELECTRIC_CHARGE |
static QuantityType |
QuantityType.ELECTRIC_CURRENT |
static QuantityType |
QuantityType.ELECTRIC_POTENTIAL_DIFFERENCE |
static QuantityType |
QuantityType.ENERGY |
static QuantityType |
QuantityType.FORCE |
static QuantityType |
QuantityType.FREQUENCY |
static QuantityType |
QuantityType.LENGTH |
static QuantityType |
QuantityType.LUMINOUS_INTENSITY |
static QuantityType |
QuantityType.MASS |
static QuantityType |
QuantityType.POWER |
static QuantityType |
QuantityType.PRESSURE |
static QuantityType |
QuantityType.TEMPERATURE |
static QuantityType |
QuantityType.TIME |
static QuantityType |
QuantityType.VOLUME |
| Modifier and Type | Method and Description |
|---|---|
QuantityType |
Unit.getQuantityType() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<QuantityType,Unit> |
BritishImperialSystem.getBaseUnitMap() |
protected abstract Map<QuantityType,Unit> |
MeasurementSystem.getBaseUnitMap() |
protected Map<QuantityType,Unit> |
SI_System.getBaseUnitMap() |
| Modifier and Type | Method and Description |
|---|---|
Unit |
MeasurementSystem.getBaseUnit(QuantityType inQuantityType) |
void |
Quantity.scale(QuantityType inQuantityType,
SI_ScalingFactor inScalingFactor) |
void |
Quantity.verifyQuantityType(QuantityType inExpectedQuantityType)
Performs a validation test to ensure that the unit is of the expected quantity type.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Unit.computeScaledValue(double inValue,
Map<QuantityType,SI_ScalingFactor> inScalingFactorMap) |
String |
Unit.computeUnitLabel(Map<QuantityType,SI_ScalingFactor> inScalingFactorMap,
boolean isPlural) |
| Constructor and Description |
|---|
Unit(MeasurementSystem inSystem,
QuantityType inQuantityType,
String inName,
String inAbbrev,
Integer inPow) |
Unit(MeasurementSystem inSystem,
QuantityType inQuantityType,
String inName,
String inAbbrev,
Integer inPow,
BaseSIUnitConverter inConversionToBaseSIUnit) |
Unit(MeasurementSystem inSystem,
QuantityType inQuantityType,
String inName,
String inAbbrev,
Integer inPow,
BaseSIUnitConverter inConversionToBaseSIUnit,
SubUnit[] inSubUnits) |
Unit(MeasurementSystem inSystem,
QuantityType inQuantityType,
String inName,
String inAbbrev,
List<SubUnit> inSubUnits) |
Unit(MeasurementSystem inSystem,
QuantityType inQuantityType,
String inName,
String inAbbrev,
SubUnit... inSubUnits) |
Unit(MeasurementSystem inSystem,
QuantityType inQuantityType,
SubUnit inSubUnit) |
Unit(QuantityType inQuantityType,
String inName,
String inAbbrev,
Integer inPow) |
Unit(QuantityType inQuantityType,
String inName,
String inAbbrev,
Integer inPow,
BaseSIUnitConverter inConversionToBaseSIUnit) |
jataylor@hairyfatguy.com