public enum DistanceUnits extends Enum<DistanceUnits>
Enum Constant and Description |
---|
KILOMETERS
Units representing a kilometer.
|
METERS
Units representing a meter.
|
MILES
Units representing a mile.
|
NAUTICAL_MILES
Units representing a nautical mile.
|
YARDS
Units representing a yard.
|
Modifier and Type | Method and Description |
---|---|
static DistanceUnits |
fromExternal(String value)
Parse a string value into a DistanceUnits value.
|
abstract double |
fromMeters(double value)
Convert a value from meters to this enum's type.
|
abstract double |
toMeters(double value)
Convert a value to meters from this enum's type.
|
static DistanceUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistanceUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistanceUnits METERS
public static final DistanceUnits KILOMETERS
public static final DistanceUnits YARDS
public static final DistanceUnits MILES
public static final DistanceUnits NAUTICAL_MILES
public static DistanceUnits[] values()
for (DistanceUnits c : DistanceUnits.values()) System.out.println(c);
public static DistanceUnits 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 abstract double toMeters(double value)
public abstract double fromMeters(double value)
public static DistanceUnits fromExternal(String value)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.