Package com.nomagic.magicdraw.simulation
Enum SimulationProfile.TimeUnitKindEnum
- java.lang.Object
-
- java.lang.Enum<SimulationProfile.TimeUnitKindEnum>
-
- com.nomagic.magicdraw.simulation.SimulationProfile.TimeUnitKindEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SimulationProfile.TimeUnitKindEnum>
- Enclosing class:
- SimulationProfile
public static enum SimulationProfile.TimeUnitKindEnum extends java.lang.Enum<SimulationProfile.TimeUnitKindEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY
HOUR
MICROSECOND
MILLISECOND
MINUTE
MONTH
NANOSECOND
SECOND
WEEK
YEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimulationProfile.TimeUnitKindEnum
from(java.lang.Object o)
java.lang.String
getText()
static SimulationProfile.TimeUnitKindEnum
toEnum(EnumerationLiteral literal)
static EnumerationLiteral
toEnumerationLiteral(SimulationProfile profile, SimulationProfile.TimeUnitKindEnum anEnum)
static SimulationProfile.TimeUnitKindEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SimulationProfile.TimeUnitKindEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NANOSECOND
public static final SimulationProfile.TimeUnitKindEnum NANOSECOND
-
MICROSECOND
public static final SimulationProfile.TimeUnitKindEnum MICROSECOND
-
MILLISECOND
public static final SimulationProfile.TimeUnitKindEnum MILLISECOND
-
SECOND
public static final SimulationProfile.TimeUnitKindEnum SECOND
-
MINUTE
public static final SimulationProfile.TimeUnitKindEnum MINUTE
-
HOUR
public static final SimulationProfile.TimeUnitKindEnum HOUR
-
DAY
public static final SimulationProfile.TimeUnitKindEnum DAY
-
WEEK
public static final SimulationProfile.TimeUnitKindEnum WEEK
-
MONTH
public static final SimulationProfile.TimeUnitKindEnum MONTH
-
YEAR
public static final SimulationProfile.TimeUnitKindEnum YEAR
-
-
Method Detail
-
values
public static SimulationProfile.TimeUnitKindEnum[] 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 (SimulationProfile.TimeUnitKindEnum c : SimulationProfile.TimeUnitKindEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimulationProfile.TimeUnitKindEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getText
public java.lang.String getText()
-
from
@CheckForNull public static SimulationProfile.TimeUnitKindEnum from(@CheckForNull java.lang.Object o)
-
toEnum
@CheckForNull public static SimulationProfile.TimeUnitKindEnum toEnum(EnumerationLiteral literal)
-
toEnumerationLiteral
@CheckForNull public static EnumerationLiteral toEnumerationLiteral(SimulationProfile profile, SimulationProfile.TimeUnitKindEnum anEnum)
-
-