Package sass.embedded_protocol
Enum 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>
- Enclosing class:
- EmbeddedSass
public static enum EmbeddedSass.CalculationOperator extends Enum<EmbeddedSass.CalculationOperator> implements ProtocolMessageEnum
An operator used in a calculation value's operation.
Protobuf enumsass.embedded_protocol.CalculationOperator
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIVIDEThe division operator.MINUSThe subtraction operator.PLUSThe addition operator.TIMESThe multiplication operator.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDIVIDE_VALUEThe division operator.static intMINUS_VALUEThe subtraction operator.static intPLUS_VALUEThe addition operator.static intTIMES_VALUEThe multiplication operator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EmbeddedSass.CalculationOperatorforNumber(int value)static Descriptors.EnumDescriptorgetDescriptor()Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()Descriptors.EnumValueDescriptorgetValueDescriptor()static Internal.EnumLiteMap<EmbeddedSass.CalculationOperator>internalGetValueMap()static EmbeddedSass.CalculationOperatorvalueOf(int value)Deprecated.static EmbeddedSass.CalculationOperatorvalueOf(Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static EmbeddedSass.CalculationOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static EmbeddedSass.CalculationOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLUS
public static final EmbeddedSass.CalculationOperator PLUS
The addition operator.
PLUS = 0;
-
MINUS
public static final EmbeddedSass.CalculationOperator MINUS
The subtraction operator.
MINUS = 1;
-
TIMES
public static final EmbeddedSass.CalculationOperator TIMES
The multiplication operator.
TIMES = 2;
-
DIVIDE
public static final EmbeddedSass.CalculationOperator DIVIDE
The division operator.
DIVIDE = 3;
-
UNRECOGNIZED
public static final EmbeddedSass.CalculationOperator UNRECOGNIZED
-
-
Field Detail
-
PLUS_VALUE
public static final int PLUS_VALUE
The addition operator.
PLUS = 0;- See Also:
- Constant Field Values
-
MINUS_VALUE
public static final int MINUS_VALUE
The subtraction operator.
MINUS = 1;- See Also:
- Constant Field Values
-
TIMES_VALUE
public static final int TIMES_VALUE
The multiplication operator.
TIMES = 2;- See Also:
- Constant Field Values
-
DIVIDE_VALUE
public static final int DIVIDE_VALUE
The division operator.
DIVIDE = 3;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EmbeddedSass.CalculationOperator[] 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 (EmbeddedSass.CalculationOperator c : EmbeddedSass.CalculationOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmbeddedSass.CalculationOperator 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static EmbeddedSass.CalculationOperator valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static EmbeddedSass.CalculationOperator forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<EmbeddedSass.CalculationOperator> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static EmbeddedSass.CalculationOperator valueOf(Descriptors.EnumValueDescriptor desc)
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:
desc- 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
-
-