public class LinearDensityUnit extends LinearUnit<LinearDensityUnit>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, by $Author: averbraeck $,
initial version 11 nov. 2014
Modifier and Type | Field and Description |
---|---|
static LinearDensityUnit |
PER_ANGSTROM
1/Angstrom.
|
static LinearDensityUnit |
PER_ASTRONOMICAL_UNIT
1/Astronomical Unit.
|
static LinearDensityUnit |
PER_ATTOMETER
1/am.
|
static LinearDensityUnit |
PER_CENTIMETER
1/centimeter.
|
static LinearDensityUnit |
PER_DECIMETER
1/decimeter.
|
static LinearDensityUnit |
PER_DEKAMETER
1/decameter.
|
static LinearDensityUnit |
PER_FEMTOMETER
1/fm.
|
static LinearDensityUnit |
PER_FOOT
1/foot (international) = 0.3048 m = 1/3 yd = 12 inches.
|
static LinearDensityUnit |
PER_HECTOMETER
1/hectometer.
|
static LinearDensityUnit |
PER_INCH
1/inch (international) = 2.54 cm = 1/36 yd = 1/12 ft.
|
static LinearDensityUnit |
PER_KILOMETER
1/kilometer.
|
static LinearDensityUnit |
PER_LIGHTYEAR
1/Lightyear.
|
static LinearDensityUnit |
PER_MEGAMETER
1/megameter.
|
static LinearDensityUnit |
PER_METER
1/meter.
|
static LinearDensityUnit |
PER_MICROMETER
1/µm.
|
static LinearDensityUnit |
PER_MILE
1/mile (international) = 5280 ft = 1760 yd.
|
static LinearDensityUnit |
PER_MILLIMETER
1/millimeter.
|
static LinearDensityUnit |
PER_NANOMETER
1/nm.
|
static LinearDensityUnit |
PER_NAUTICAL_MILE
1/nautical mile (international) = 1852 m.
|
static LinearDensityUnit |
PER_PARSEC
1/Parsec.
|
static LinearDensityUnit |
PER_PICOMETER
1/pm.
|
static LinearDensityUnit |
PER_YARD
1/yard (international) = 0.9144 m = 3 ft = 36 in.
|
static LinearDensityUnit |
SI
The SI unit for objects per unit of distance is 1/meter.
|
STANDARD_UNITS
Constructor and Description |
---|
LinearDensityUnit(LengthUnit lengthUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined LinearDensityUnit based on length.
|
LinearDensityUnit(String name,
String abbreviation,
UnitSystem unitSystem,
LinearDensityUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined LinearDensityUnit with a conversion factor to another LinearDensityUnit.
|
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
LinearDensityUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getSICoefficients, getTextualRepresentations, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final LinearDensityUnit SI
public static final LinearDensityUnit PER_ATTOMETER
public static final LinearDensityUnit PER_FEMTOMETER
public static final LinearDensityUnit PER_PICOMETER
public static final LinearDensityUnit PER_NANOMETER
public static final LinearDensityUnit PER_MICROMETER
public static final LinearDensityUnit PER_METER
public static final LinearDensityUnit PER_MILLIMETER
public static final LinearDensityUnit PER_CENTIMETER
public static final LinearDensityUnit PER_DECIMETER
public static final LinearDensityUnit PER_DEKAMETER
public static final LinearDensityUnit PER_HECTOMETER
public static final LinearDensityUnit PER_KILOMETER
public static final LinearDensityUnit PER_MEGAMETER
public static final LinearDensityUnit PER_FOOT
public static final LinearDensityUnit PER_INCH
public static final LinearDensityUnit PER_MILE
public static final LinearDensityUnit PER_NAUTICAL_MILE
public static final LinearDensityUnit PER_YARD
public static final LinearDensityUnit PER_ASTRONOMICAL_UNIT
public static final LinearDensityUnit PER_LIGHTYEAR
public static final LinearDensityUnit PER_PARSEC
public static final LinearDensityUnit PER_ANGSTROM
public LinearDensityUnit(LengthUnit lengthUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit
- LengthUnit; the unit of length for the linear density unit, e.g., metername
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic LinearDensityUnit(String name, String abbreviation, UnitSystem unitSystem, LinearDensityUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or ImperialreferenceUnit
- LinearDensityUnit; the unit to convert toscaleFactorToReferenceUnit
- double; multiply a value in this unit by the factor to convert to the given reference
unitpublic final LengthUnit getLengthUnit()
public final LinearDensityUnit getStandardUnit()
getStandardUnit
in class Unit<LinearDensityUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<LinearDensityUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.