Serializable
, Comparable<Quantity.Scale>
public static enum Quantity.Scale extends Enum<Quantity.Scale>
Modifier and Type | Method | Description |
---|---|---|
static Quantity.Scale |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Quantity.Scale[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Quantity.Scale ABSOLUTE
public static final Quantity.Scale RELATIVE
public static Quantity.Scale[] values()
for (Quantity.Scale c : Quantity.Scale.values()) System.out.println(c);
public static Quantity.Scale 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 nullCopyright © 2014–2019 Jean-Marie Dautelle, Werner Keil, Otavio Santana. All rights reserved.