public class AreaUnit extends LinearUnit<AreaUnit>
Copyright (c) 2015-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 May 15, 2014
Modifier and Type | Field and Description |
---|---|
static AreaUnit |
ACRE
acre (international).
|
static AreaUnit |
ARE
are.
|
static AreaUnit |
CENTIARE
centiare.
|
static AreaUnit |
HECTARE
hectare.
|
static AreaUnit |
SI
The SI unit for area is m^2.
|
static AreaUnit |
SQUARE_ATTOMETER
am^2.
|
static AreaUnit |
SQUARE_CENTIMETER
cm^2.
|
static AreaUnit |
SQUARE_DECIMETER
dm^2.
|
static AreaUnit |
SQUARE_DEKAMETER
dam^2.
|
static AreaUnit |
SQUARE_FEMTOMETER
fm^2.
|
static AreaUnit |
SQUARE_FOOT
ft^2.
|
static AreaUnit |
SQUARE_HECTOMETER
hm^2.
|
static AreaUnit |
SQUARE_INCH
in^2.
|
static AreaUnit |
SQUARE_KILOMETER
km^2.
|
static AreaUnit |
SQUARE_MEGAMETER
Mm^2.
|
static AreaUnit |
SQUARE_METER
m^2.
|
static AreaUnit |
SQUARE_MICROMETER
µm^2.
|
static AreaUnit |
SQUARE_MILE
mile^2.
|
static AreaUnit |
SQUARE_MILLIMETER
mm^2.
|
static AreaUnit |
SQUARE_NANOMETER
nm^2.
|
static AreaUnit |
SQUARE_NAUTICAL_MILE
Nautical mile^2.
|
static AreaUnit |
SQUARE_PICOMETER
pm^2.
|
static AreaUnit |
SQUARE_YARD
yd^2.
|
STANDARD_UNITS
Constructor and Description |
---|
AreaUnit(LengthUnit lengthUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Create a user-defined area unit based on length.
|
AreaUnit(String name,
String abbreviation,
UnitSystem unitSystem,
AreaUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined unit with a conversion factor to another unit, e.g.
|
Modifier and Type | Method and Description |
---|---|
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
AreaUnit |
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 AreaUnit SI
public static final AreaUnit SQUARE_ATTOMETER
public static final AreaUnit SQUARE_FEMTOMETER
public static final AreaUnit SQUARE_PICOMETER
public static final AreaUnit SQUARE_NANOMETER
public static final AreaUnit SQUARE_MICROMETER
public static final AreaUnit SQUARE_MILLIMETER
public static final AreaUnit SQUARE_METER
public static final AreaUnit SQUARE_CENTIMETER
public static final AreaUnit SQUARE_DECIMETER
public static final AreaUnit SQUARE_DEKAMETER
public static final AreaUnit SQUARE_HECTOMETER
public static final AreaUnit SQUARE_KILOMETER
public static final AreaUnit SQUARE_MEGAMETER
public static final AreaUnit CENTIARE
public static final AreaUnit ARE
public static final AreaUnit HECTARE
public static final AreaUnit SQUARE_MILE
public static final AreaUnit SQUARE_NAUTICAL_MILE
public static final AreaUnit SQUARE_FOOT
public static final AreaUnit SQUARE_INCH
public static final AreaUnit SQUARE_YARD
public static final AreaUnit ACRE
public AreaUnit(LengthUnit lengthUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit
- LengthUnit; the unit of length for the area 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 AreaUnit(String name, String abbreviation, UnitSystem unitSystem, AreaUnit 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
- AreaUnit; 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 AreaUnit getStandardUnit()
getStandardUnit
in class Unit<AreaUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<AreaUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.