public static enum ConvertDistances.Distance extends Enum<ConvertDistances.Distance>
| Enum Constant and Description |
|---|
CENTIMETER |
DECIMETER |
DEKAMETER |
FOOT |
HECTOMETER |
INCH |
KILOMETER |
LIGHT_YEAR |
METER |
MILE |
MILLIMETER |
NAUTICAL_MILE |
YARD |
| Modifier and Type | Method and Description |
|---|---|
double |
getFromBase() |
String |
getMeasureName() |
String |
getName() |
double |
getToBase() |
static ConvertDistances.Distance |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConvertDistances.Distance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConvertDistances.Distance MILLIMETER
public static final ConvertDistances.Distance CENTIMETER
public static final ConvertDistances.Distance DECIMETER
public static final ConvertDistances.Distance METER
public static final ConvertDistances.Distance DEKAMETER
public static final ConvertDistances.Distance HECTOMETER
public static final ConvertDistances.Distance KILOMETER
public static final ConvertDistances.Distance INCH
public static final ConvertDistances.Distance FOOT
public static final ConvertDistances.Distance YARD
public static final ConvertDistances.Distance MILE
public static final ConvertDistances.Distance NAUTICAL_MILE
public static final ConvertDistances.Distance LIGHT_YEAR
public static ConvertDistances.Distance[] values()
for (ConvertDistances.Distance c : ConvertDistances.Distance.values()) System.out.println(c);
public static ConvertDistances.Distance 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 String getName()
public String getMeasureName()
public double getToBase()
public double getFromBase()
Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.