public enum SIUnit extends Enum<SIUnit>
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static SIUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SIUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SIUnit M
public static final SIUnit KG
public static final SIUnit s
public static SIUnit[] values()
for (SIUnit c : SIUnit.values()) System.out.println(c);
public static SIUnit 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()
Copyright © 2020. All rights reserved.