Package de.uka.ipd.sdq.units
Enum Class UnitNames
- All Implemented Interfaces:
Serializable,Comparable<UnitNames>,Constable,Enumerator
A representation of the literals of the enumeration ' Unit
Names', and utility methods for working with them.
- See Also:
- Generated class or method.
- EMF model class or method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe 'BYTE' literal value.static final Stringstatic final intThe 'METER' literal value.static final intThe 'SECOND' literal value.static final intThe 'UNITLESS' literal value.A public read-only list of all the 'Unit Names' enumerators. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnitNamesget(int value) Returns the 'Unit Names' literal with the specified integer value.static UnitNamesReturns the 'Unit Names' literal with the specified literal value.static UnitNamesReturns the 'Unit Names' literal with the specified name.getName()intgetValue()toString()Returns the literal value of the enumerator, which is its string representation.static UnitNamesReturns the enum constant of this class with the specified name.static UnitNames[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNITLESS
The 'UNITLESS' literal object.- See Also:
- Generated class or method.
- Ordered collection.
-
BYTE
The 'BYTE' literal object.- See Also:
- Generated class or method.
- Ordered collection.
-
SECOND
The 'SECOND' literal object.- See Also:
- Generated class or method.
- Ordered collection.
-
METER
The 'METER' literal object.- See Also:
- Generated class or method.
- Ordered collection.
-
-
Field Details
-
copyright
- See Also:
- Generated class or method.
-
UNITLESS_VALUE
public static final int UNITLESS_VALUEThe 'UNITLESS' literal value.If the meaning of 'UNITLESS' literal object isn't clear, there really should be more of a description here...
- See Also:
- Generated class or method.
- EMF model class or method.
- literal=""
- Ordered collection.
-
BYTE_VALUE
public static final int BYTE_VALUEThe 'BYTE' literal value.If the meaning of 'BYTE' literal object isn't clear, there really should be more of a description here...
- See Also:
- Generated class or method.
- EMF model class or method.
- literal="B"
- Ordered collection.
-
SECOND_VALUE
public static final int SECOND_VALUEThe 'SECOND' literal value.If the meaning of 'SECOND' literal object isn't clear, there really should be more of a description here...
- See Also:
- Generated class or method.
- EMF model class or method.
- literal="s"
- Ordered collection.
-
METER_VALUE
public static final int METER_VALUEThe 'METER' literal value.If the meaning of 'METER' literal object isn't clear, there really should be more of a description here...
- See Also:
- Generated class or method.
- EMF model class or method.
- literal="m"
- Ordered collection.
-
VALUES
A public read-only list of all the 'Unit Names' enumerators.- Generated class or method.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns the 'Unit Names' literal with the specified literal value.- Generated class or method.
-
getByName
Returns the 'Unit Names' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null. - Generated class or method.
-
get
Returns the 'Unit Names' literal with the specified integer value.- Generated class or method.
-
getValue
public int getValue()- Specified by:
getValuein interfaceEnumerator- Generated class or method.
-
getName
- Specified by:
getNamein interfaceEnumerator- Generated class or method.
-
getLiteral
- Specified by:
getLiteralin interfaceEnumerator- Generated class or method.
-
toString
Returns the literal value of the enumerator, which is its string representation.
-