public enum Unit extends Enum<Unit>
Enum Constant and Description |
---|
DAYS |
GRAMMES |
GRAMMESPERKG |
GRAMMESPERKGPERHOUR |
HOURS |
IU |
IUPERKG |
KILOGRAMMES |
MILLIGRAMMES |
MILLIGRAMMESPERKG |
MILLIGRAMMESPERKGPERHOUR |
MILLISECONDS |
MINUTES |
MONTHS |
POUNDS |
SECONDS |
TONNES |
WEEKS |
YEARS |
Modifier and Type | Method and Description |
---|---|
String |
getNormalizedName() |
Pattern[] |
getPatterns() |
static Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit MILLISECONDS
public static final Unit SECONDS
public static final Unit MINUTES
public static final Unit HOURS
public static final Unit DAYS
public static final Unit WEEKS
public static final Unit MONTHS
public static final Unit YEARS
public static final Unit MILLIGRAMMES
public static final Unit GRAMMES
public static final Unit KILOGRAMMES
public static final Unit TONNES
public static final Unit IU
public static final Unit POUNDS
public static final Unit IUPERKG
public static final Unit MILLIGRAMMESPERKG
public static final Unit GRAMMESPERKG
public static final Unit MILLIGRAMMESPERKGPERHOUR
public static final Unit GRAMMESPERKGPERHOUR
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit 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 Pattern[] getPatterns()
public String getNormalizedName()
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie