public enum MeasuringUnit extends Enum<MeasuringUnit>
| Enum Constant and Description |
|---|
KILOMETER
The kilometer. 1.609344 is the number of kilometres in a mile
|
METER
The meter. 1609.344 is the number of metres in a mile
|
MILE
The mile. 0.8684 is the factor for convert miles(statute) into miles (nautical).
|
| Modifier and Type | Field and Description |
|---|---|
static double |
KILOMETER_FACTOR |
static double |
METER_FACTOR |
static double |
MILE_FACTOR |
| Modifier and Type | Method and Description |
|---|---|
double |
getFactor()
Gets the factor.
|
static MeasuringUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MeasuringUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeasuringUnit KILOMETER
public static final MeasuringUnit METER
public static final MeasuringUnit MILE
public static final double KILOMETER_FACTOR
public static final double METER_FACTOR
public static final double MILE_FACTOR
public static MeasuringUnit[] values()
for (MeasuringUnit c : MeasuringUnit.values()) System.out.println(c);
public static MeasuringUnit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic double getFactor()
Copyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.