public enum ForceUnitEnumType extends Enum<ForceUnitEnumType>
Java class for ForceUnitEnumType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ForceUnitEnumType">
<restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
<enumeration value="newton"/>
<enumeration value="pound"/>
<enumeration value="ounce"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static ForceUnitEnumType |
fromValue(String v) |
String |
value() |
static ForceUnitEnumType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ForceUnitEnumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ForceUnitEnumType NEWTON
public static final ForceUnitEnumType POUND
public static final ForceUnitEnumType OUNCE
public static ForceUnitEnumType[] values()
for (ForceUnitEnumType c : ForceUnitEnumType.values()) System.out.println(c);
public static ForceUnitEnumType 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 ForceUnitEnumType fromValue(String v)
Copyright © 2016. All rights reserved.