Enum Constant and Description |
---|
SquareCentimeters |
SquareFeet |
SquareInches |
SquareMeters |
SquareMicrons |
SquareMillimeters |
SquareMils |
Modifier and Type | Method and Description |
---|---|
static AreaUnit |
fromLengthUnit(LengthUnit lengthUnit)
Creates an area unit that is equivalent to the square of the given length unit
|
LengthUnit |
getLengthUnit()
Gets a length unit, that when squared, is equivalent to this area unit
|
java.lang.String |
getShortName() |
java.lang.String |
getSingularName() |
static AreaUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AreaUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AreaUnit SquareMeters
public static final AreaUnit SquareCentimeters
public static final AreaUnit SquareMillimeters
public static final AreaUnit SquareFeet
public static final AreaUnit SquareInches
public static final AreaUnit SquareMils
public static final AreaUnit SquareMicrons
public static AreaUnit[] values()
for (AreaUnit c : AreaUnit.values()) System.out.println(c);
public static AreaUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getShortName()
public java.lang.String getSingularName()
public LengthUnit getLengthUnit()
public static AreaUnit fromLengthUnit(LengthUnit lengthUnit)
lengthUnit
- - the given length unit