Package sass.embedded_protocol
Enum Class EmbeddedSass.CalculationOperator
java.lang.Object
java.lang.Enum<EmbeddedSass.CalculationOperator>
sass.embedded_protocol.EmbeddedSass.CalculationOperator
- All Implemented Interfaces:
Internal.EnumLite
,ProtocolMessageEnum
,Serializable
,Comparable<EmbeddedSass.CalculationOperator>
,Constable
- Enclosing class:
- EmbeddedSass
public static enum EmbeddedSass.CalculationOperator
extends Enum<EmbeddedSass.CalculationOperator>
implements ProtocolMessageEnum
An operator used in a calculation value's operation.Protobuf enum
sass.embedded_protocol.CalculationOperator
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe division operator.The subtraction operator.The addition operator.The multiplication operator. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The division operator.static final int
The subtraction operator.static final int
The addition operator.static final int
The multiplication operator. -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) static final Descriptors.EnumDescriptor
final int
valueOf
(int value) Deprecated.Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static EmbeddedSass.CalculationOperator[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLUS
The addition operator.
PLUS = 0;
-
MINUS
The subtraction operator.
MINUS = 1;
-
TIMES
The multiplication operator.
TIMES = 2;
-
DIVIDE
The division operator.
DIVIDE = 3;
-
UNRECOGNIZED
-
-
Field Details
-
PLUS_VALUE
public static final int PLUS_VALUEThe addition operator.
PLUS = 0;
- See Also:
-
MINUS_VALUE
public static final int MINUS_VALUEThe subtraction operator.
MINUS = 1;
- See Also:
-
TIMES_VALUE
public static final int TIMES_VALUEThe multiplication operator.
TIMES = 2;
- See Also:
-
DIVIDE_VALUE
public static final int DIVIDE_VALUEThe division operator.
DIVIDE = 3;
- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfaceInternal.EnumLite
- Specified by:
getNumber
in interfaceProtocolMessageEnum
-
valueOf
Deprecated.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:
value
- 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
-
forNumber
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
- Specified by:
getValueDescriptor
in interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForType
in interfaceProtocolMessageEnum
-
getDescriptor
-
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:
desc
- 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
-