public enum AreaUnits extends java.lang.Enum<AreaUnits> implements IUnits<AreaUnits>
Enum Constant and Description |
---|
SQ_CENTIMETER
Square centimeter
|
SQ_FOOT
Square foot
|
SQ_INCH
Square inch
|
SQ_KILOMETER
Square kilometer
|
SQ_METER
Square meter
|
SQ_MILE
Square mile
|
SQ_MILLIMETER
Square millimeter
|
SQ_NAUTICAL_MILE
Square nautical mile
|
SQ_YARD
Square yard
|
ALL_UNIT_TYPES
Modifier and Type | Method and Description |
---|---|
double |
convertTo(double value,
AreaUnits units)
Converts the given value from this units to the given
units |
LengthUnits |
getLengthUnits() |
java.lang.String |
getName()
Returns human-readable name (e.g.
|
double |
modifier(AreaUnits units) |
static AreaUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AreaUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AreaUnits SQ_MILLIMETER
public static final AreaUnits SQ_CENTIMETER
public static final AreaUnits SQ_METER
public static final AreaUnits SQ_KILOMETER
public static final AreaUnits SQ_INCH
public static final AreaUnits SQ_FOOT
public static final AreaUnits SQ_YARD
public static final AreaUnits SQ_MILE
public static final AreaUnits SQ_NAUTICAL_MILE
public static AreaUnits[] values()
for (AreaUnits c : AreaUnits.values()) System.out.println(c);
public static AreaUnits 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 LengthUnits getLengthUnits()
public java.lang.String getName()
IUnits
public double modifier(AreaUnits units)
Copyright © AnyLogic North America, LLC. All Rights Reserved.