Package org.omg.smm
Enum Accumulator
- All Implemented Interfaces:
Serializable,Comparable<Accumulator>,java.lang.constant.Constable,org.eclipse.emf.common.util.Enumerator
public enum Accumulator extends Enum<Accumulator> implements org.eclipse.emf.common.util.Enumerator
A representation of the literals of the enumeration 'Accumulator',
and utility methods for working with them.
- See Also:
SmmPackage.getAccumulator()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description AVERAGEThe 'Average' literal object.CUSTOMThe 'Custom' literal object.MAXIMUMThe 'Maximum' literal object.MINIMUMThe 'Minimum' literal object.PRODUCTThe 'Product' literal object.STANDARD_DEVIATIONThe 'Standard Deviation' literal object.SUMThe 'Sum' literal object. -
Field Summary
Fields Modifier and Type Field Description static intAVERAGE_VALUEThe 'Average' literal value.static intCUSTOM_VALUEThe 'Custom' literal value.static intMAXIMUM_VALUEThe 'Maximum' literal value.static intMINIMUM_VALUEThe 'Minimum' literal value.static intPRODUCT_VALUEThe 'Product' literal value.static intSTANDARD_DEVIATION_VALUEThe 'Standard Deviation' literal value.static intSUM_VALUEThe 'Sum' literal value.static List<Accumulator>VALUESA public read-only list of all the 'Accumulator' enumerators. -
Method Summary
Modifier and Type Method Description static Accumulatorget(int value)Returns the 'Accumulator' literal with the specified integer value.static Accumulatorget(String literal)Returns the 'Accumulator' literal with the specified literal value.static AccumulatorgetByName(String name)Returns the 'Accumulator' literal with the specified name.StringgetLiteral()StringgetName()intgetValue()StringtoString()Returns the literal value of the enumerator, which is its string representation.static AccumulatorvalueOf(String name)Returns the enum constant of this type with the specified name.static Accumulator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUM
The 'Sum' literal object.- See Also:
SUM_VALUE
-
MAXIMUM
The 'Maximum' literal object.- See Also:
MAXIMUM_VALUE
-
MINIMUM
The 'Minimum' literal object.- See Also:
MINIMUM_VALUE
-
AVERAGE
The 'Average' literal object.- See Also:
AVERAGE_VALUE
-
STANDARD_DEVIATION
The 'Standard Deviation' literal object.- See Also:
STANDARD_DEVIATION_VALUE
-
PRODUCT
The 'Product' literal object.- See Also:
PRODUCT_VALUE
-
CUSTOM
The 'Custom' literal object.- See Also:
CUSTOM_VALUE
-
-
Field Details
-
SUM_VALUE
public static final int SUM_VALUEThe 'Sum' literal value.- See Also:
SUM, Constant Field Values
-
MAXIMUM_VALUE
public static final int MAXIMUM_VALUEThe 'Maximum' literal value.- See Also:
MAXIMUM, Constant Field Values
-
MINIMUM_VALUE
public static final int MINIMUM_VALUEThe 'Minimum' literal value.- See Also:
MINIMUM, Constant Field Values
-
AVERAGE_VALUE
public static final int AVERAGE_VALUEThe 'Average' literal value.- See Also:
AVERAGE, Constant Field Values
-
STANDARD_DEVIATION_VALUE
public static final int STANDARD_DEVIATION_VALUEThe 'Standard Deviation' literal value.- See Also:
STANDARD_DEVIATION, Constant Field Values
-
PRODUCT_VALUE
public static final int PRODUCT_VALUEThe 'Product' literal value.- See Also:
PRODUCT, Constant Field Values
-
CUSTOM_VALUE
public static final int CUSTOM_VALUEThe 'Custom' literal value.- See Also:
CUSTOM, Constant Field Values
-
VALUES
A public read-only list of all the 'Accumulator' enumerators.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Returns the 'Accumulator' literal with the specified literal value.- Parameters:
literal- the literal.- Returns:
- the matching enumerator or
null.
-
getByName
Returns the 'Accumulator' literal with the specified name.- Parameters:
name- the name.- Returns:
- the matching enumerator or
null.
-
get
Returns the 'Accumulator' literal with the specified integer value.- Parameters:
value- the integer value.- Returns:
- the matching enumerator or
null.
-
getValue
public int getValue()- Specified by:
getValuein interfaceorg.eclipse.emf.common.util.Enumerator
-
getName
- Specified by:
getNamein interfaceorg.eclipse.emf.common.util.Enumerator
-
getLiteral
- Specified by:
getLiteralin interfaceorg.eclipse.emf.common.util.Enumerator
-
toString
Returns the literal value of the enumerator, which is its string representation.- Overrides:
toStringin classEnum<Accumulator>
-