Enum Class OperatorKind
- All Implemented Interfaces:
Serializable,Comparable<OperatorKind>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription表示加号(+)运算符。表示 & 运算符。表示 / 运算符。表示"="运算符。表示 ^ 运算符。表示大于操作符。表示大于或等于运算符。表示 <> 运算符表示(空格)运算符。表示小于运算符(<)。表示 <= 操作符。表示操作符。代表百分号(%)操作符。表示冒号运算符。表示 @ 运算符。
将动态数组函数溢出的单元格范围聚合到一个单元格中。
语法:
@expression
部分:
expression:必选。任何范围或函数调用表达式。表示 # 操作符。表示“-”运算符。表示,运算符。 -
Method Summary
Modifier and TypeMethodDescriptionstatic OperatorKindforValue(int value) intgetValue()static OperatorKindReturns the enum constant of this class with the specified name.static OperatorKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Addition
表示加号(+)运算符。
加号(+)运算符的主要用途是两个数相加。
此运算符仅定义于double操作数,并且它总是将其操作数缩小到double。
语法:
expression1 + expression2或+expression2
部分:
expression1:可选。任何数值或字符串表达式。
expression2:必选。任何数值或字符串表达式。 -
Subtraction
表示“-”运算符。
返回两个数值表达式之间的差或数值表达式的负值。
语法:
expression1 - expression2或-expression2
部分:
expression1:可选。任何数值或字符串表达式。
expression2:必需。任何数值或字符串表达式。 -
Multiply
表示操作符。
乘以两个数字。
语法:
expression1 expression2
部分:
expression1:必需。任意数值或字符串表达式。
expression2:必需。任意数值或字符串表达式。 -
Division
表示 / 运算符。
两个数相除,并返回一个浮点数结果,包括任何余数。
QUOTIENT函数返回整数商,它会丢弃余数。
语法:
expression1 / expression2
部分:
expression1:必需的。任意数值或字符串表达式。
expression2:必需的。任意数值或字符串表达式。 -
Exponent
表示 ^ 运算符。
将一个数字提升到另一个数字的幂,结果始终为
double值。
语法:
number ^ exponent
部分:
number:必需。任何数值或字符串表达式。
exponent:必需。任何数值或字符串表达式。 -
Percentage
代表百分号(%)操作符。
将一个数字除以100。
语法:
expression1%
部分:
expression1:必选。任何数值或字符串表达式。 -
Concatenate
表示 & 运算符。
连接运算符将多个字符串合并成一个字符串。 & 运算符仅定义于
string操作数,并且总是将其操作数扩展为string。
语法:
expression1 & expression2
部分:
expression1:必需。任何数据类型可扩展为 String 的表达式。
expression2:必需。任何数据类型可扩展为 String 的表达式。 -
Range
表示冒号运算符。
范围运算符给出了从起始点引用单元格到结束点引用单元格之间的单元格范围。
语法:
range1:range2
部分:
range1: 必需。必须是一个范围表达式。
range2: 必需。必须是一个范围表达式。 -
Union
表示,运算符。联合运算符将两个或两个以上的引用合并成一个引用。
语法:
range1,range2
部分:
range1: 必需。必须是一个范围表达式。
range2: 必需。必须是一个范围表达式。 -
Intersection
表示(空格)运算符。
交集运算符会引用两个范围参数中共同的单元格。
语法:
range1 range2
部分:
range1:必填。必须是一个范围表达式。
range2:必填。必须是一个范围表达式。 -
Spill
表示 # 操作符。
指的是从特定单元格溢出的单元格范围。
语法:
expression#
部分:
expression: 必需。任意单元格引用表达式。 -
Single
表示 @ 运算符。
将动态数组函数溢出的单元格范围聚合到一个单元格中。
语法:
@expression
部分:
expression:必选。任何范围或函数调用表达式。 -
Equality
表示"="运算符。
等号运算符用于比较两个表达式,以确定它们是否相等。
语法:
expression1 = expression2
部分:
expression1:必需。任意表达式。
expression2:必需。任意表达式。 -
Inequality
表示 <> 运算符
不等式运算符比较两个表达式以确定它们是否不相等。
语法:
expression1 <> expression2
部分:
expression1: 必需。任何表达式。
expression2: 必需。任何表达式。 -
LessThan
表示小于运算符(<)。小于运算符用于比较两个表达式,以确定左侧是否小于右侧。
语法:
expression1 < expression2
组成部分:
expression1:必填项。任意表达式。
expression2:必填项。任意表达式。 -
LessThanOrEqual
表示 <= 操作符。
小于或等于操作符比较两个表达式,以确定左侧是否小于或等于右侧。
语法:
expression1 <= expression2
部分:
expression1: 必需的。任意表达式。
expression2: 必需的。任意表达式。 -
GreaterThan
表示大于操作符。
大于操作符比较两个表达式,以确定左侧是否大于右侧。
语法:
expression1 > expression2
部分:
expression1:必需。任何表达式。
expression2:必需。任何表达式。 -
GreaterThanOrEqual
表示大于或等于运算符。
大于运算符用于比较两个表达式,以确定左侧是否大于或等于右侧。
语法:
expression1 >= expression2
部分:
expression1: 必需。任意表达式。
expression2: 必需。任意表达式。
-
-
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
-
getValue
public int getValue() -
forValue
-