public enum TimeUnit extends Enum<TimeUnit> implements org.eclipse.emf.common.util.Enumerator
BpsimPackage.getTimeUnit()
Enum Constant and Description |
---|
DAY
The 'Day' literal object
|
HOUR
The 'Hour' literal object
|
MIN
The 'Min' literal object
|
MS
The 'Ms' literal object
|
S
The 'S' literal object
|
YEAR
The 'Year' literal object
|
Modifier and Type | Field and Description |
---|---|
static int |
DAY_VALUE
The 'Day' literal value
|
static int |
HOUR_VALUE
The 'Hour' literal value
|
static int |
MIN_VALUE
The 'Min' literal value
|
static int |
MS_VALUE
The 'Ms' literal value
|
static int |
S_VALUE
The 'S' literal value
|
static List<TimeUnit> |
VALUES
A public read-only list of all the 'Time Unit' enumerators
|
static int |
YEAR_VALUE
The 'Year' literal value
|
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
get(int value)
Returns the 'Time Unit' literal with the specified integer value
|
static TimeUnit |
get(String literal)
Returns the 'Time Unit' literal with the specified literal value
|
static TimeUnit |
getByName(String name)
Returns the 'Time Unit' literal with the specified name
|
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString()
Returns the literal value of the enumerator, which is its string representation
|
static TimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeUnit MS
MS_VALUE
public static final TimeUnit MIN
MIN_VALUE
public static final TimeUnit HOUR
HOUR_VALUE
public static final TimeUnit DAY
DAY_VALUE
public static final TimeUnit YEAR
YEAR_VALUE
public static final int MS_VALUE
If the meaning of 'Ms' literal object isn't clear, there really should be more of a description here...
MS
,
Constant Field Valuespublic static final int S_VALUE
If the meaning of 'S' literal object isn't clear, there really should be more of a description here...
S
,
Constant Field Valuespublic static final int MIN_VALUE
If the meaning of 'Min' literal object isn't clear, there really should be more of a description here...
MIN
,
Constant Field Valuespublic static final int HOUR_VALUE
If the meaning of 'Hour' literal object isn't clear, there really should be more of a description here...
HOUR
,
Constant Field Valuespublic static final int DAY_VALUE
If the meaning of 'Day' literal object isn't clear, there really should be more of a description here...
DAY
,
Constant Field Valuespublic static final int YEAR_VALUE
If the meaning of 'Year' literal object isn't clear, there really should be more of a description here...
YEAR
,
Constant Field Valuespublic static TimeUnit[] values()
for (TimeUnit c : TimeUnit.values()) System.out.println(c);
public static TimeUnit 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 static TimeUnit get(String literal)
public static TimeUnit getByName(String name)
public static TimeUnit get(int value)
public int getValue()
getValue
in interface org.eclipse.emf.common.util.Enumerator
public String getName()
getName
in interface org.eclipse.emf.common.util.Enumerator
public String getLiteral()
getLiteral
in interface org.eclipse.emf.common.util.Enumerator
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.