public enum DistanceUnitType extends Enum<DistanceUnitType>
Enum Constant and Description |
---|
FOOT_FT |
INCH_IN |
METER_M |
MILE_MI |
YARD_YD |
Modifier and Type | Method and Description |
---|---|
static DistanceUnitType |
fromValue(String v) |
String |
value() |
static DistanceUnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DistanceUnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistanceUnitType METER_M
public static final DistanceUnitType MILE_MI
public static final DistanceUnitType YARD_YD
public static final DistanceUnitType FOOT_FT
public static final DistanceUnitType INCH_IN
public static DistanceUnitType[] values()
for (DistanceUnitType c : DistanceUnitType.values()) System.out.println(c);
public static DistanceUnitType 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 value()
public static DistanceUnitType fromValue(String v)
Copyright © 2017–2022 Red Hat, Inc.. All rights reserved.