Package bpsim
Enum TimeUnit
- java.lang.Object
-
- java.lang.Enum<TimeUnit>
-
- bpsim.TimeUnit
-
- All Implemented Interfaces:
Serializable,Comparable<TimeUnit>,org.eclipse.emf.common.util.Enumerator
public enum TimeUnit extends Enum<TimeUnit> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Time Unit', and utility methods for working with them.- See Also:
BpsimPackage.getTimeUnit()- Generated code
- Model
- extendedMetaData="name='TimeUnit'"
-
-
Field Summary
Fields Modifier and Type Field Description static intDAY_VALUEThe 'Day' literal value.static intHOUR_VALUEThe 'Hour' literal value.static intMIN_VALUEThe 'Min' literal value.static intMS_VALUEThe 'Ms' literal value.static intS_VALUEThe 'S' literal value.static List<TimeUnit>VALUESA public read-only list of all the 'Time Unit' enumerators.static intYEAR_VALUEThe 'Year' literal value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeUnitget(int value)Returns the 'Time Unit' literal with the specified integer value.static TimeUnitget(String literal)Returns the 'Time Unit' literal with the specified literal value.static TimeUnitgetByName(String name)Returns the 'Time Unit' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static TimeUnitvalueOf(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.
-
-
-
Enum Constant Detail
-
MS
public static final TimeUnit MS
The 'Ms' literal object.- See Also:
MS_VALUE- Generated code
- Ordered
-
MIN
public static final TimeUnit MIN
The 'Min' literal object.- See Also:
MIN_VALUE- Generated code
- Ordered
-
HOUR
public static final TimeUnit HOUR
The 'Hour' literal object.- See Also:
HOUR_VALUE- Generated code
- Ordered
-
DAY
public static final TimeUnit DAY
The 'Day' literal object.- See Also:
DAY_VALUE- Generated code
- Ordered
-
YEAR
public static final TimeUnit YEAR
The 'Year' literal object.- See Also:
YEAR_VALUE- Generated code
- Ordered
-
-
Field Detail
-
MS_VALUE
public static final int MS_VALUE
The 'Ms' literal value.If the meaning of 'Ms' literal object isn't clear, there really should be more of a description here...
- See Also:
MS, Constant Field Values- Generated code
- Model
- name="ms"
- Ordered
-
S_VALUE
public static final int S_VALUE
The 'S' literal value.If the meaning of 'S' literal object isn't clear, there really should be more of a description here...
- See Also:
S, Constant Field Values- Generated code
- Model
- name="s"
- Ordered
-
MIN_VALUE
public static final int MIN_VALUE
The 'Min' literal value.If the meaning of 'Min' literal object isn't clear, there really should be more of a description here...
- See Also:
MIN, Constant Field Values- Generated code
- Model
- name="min"
- Ordered
-
HOUR_VALUE
public static final int HOUR_VALUE
The 'Hour' literal value.If the meaning of 'Hour' literal object isn't clear, there really should be more of a description here...
- See Also:
HOUR, Constant Field Values- Generated code
- Model
- name="hour"
- Ordered
-
DAY_VALUE
public static final int DAY_VALUE
The 'Day' literal value.If the meaning of 'Day' literal object isn't clear, there really should be more of a description here...
- See Also:
DAY, Constant Field Values- Generated code
- Model
- name="day"
- Ordered
-
YEAR_VALUE
public static final int YEAR_VALUE
The 'Year' literal value.If the meaning of 'Year' literal object isn't clear, there really should be more of a description here...
- See Also:
YEAR, Constant Field Values- Generated code
- Model
- name="year"
- Ordered
-
-
Method Detail
-
values
public static TimeUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TimeUnit c : TimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
public static TimeUnit get(String literal)
Returns the 'Time Unit' literal with the specified literal value.- Generated code
-
getByName
public static TimeUnit getByName(String name)
Returns the 'Time Unit' literal with the specified name.- Generated code
-
get
public static TimeUnit get(int value)
Returns the 'Time Unit' literal with the specified integer value.- Generated code
-
getValue
public int getValue()
- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator- Generated code
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator- Generated code
-
getLiteral
public String getLiteral()
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator- Generated code
-
-