Enum Class OperatorKind
- 所有已实现的接口:
Serializable
,Comparable<OperatorKind>
,Constable
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量说明Represents the + operator.Represents the & operator.Represents the / operator.Represents the = operator.Represents the ^ operator.Represents the > operator.Represents the >= operator.Represents the <> operator.Represents the (space) operator.Represents the < operator.Represents the <= operator.Represents the * operator.Represents the % operator.Represents the : operator.Represents the @ operator.
Aggregates a range of cells spilled by Dynamic Array functions into a single cell.Represents the # operator.Represents the - operator.Represents the,
operator. -
方法概要
修饰符和类型方法说明static OperatorKind
forValue
(int value) int
getValue()
static OperatorKind
Returns 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.
-
枚举常量详细资料
-
Addition
Represents the + operator.
The + operator has the primary purpose of adding two numbers.
This operator is defined only fordouble
operands, and it alwaysnarrows its operands todouble
.
Syntax:
expression1 + expression2
or+expression2
Parts:
expression1
: Optional. Any numeric or string expression.
expression2
: Required. Any numeric or string expression. -
Subtraction
Represents the - operator.
Returns the difference between two numeric expressions or the negative value of a numeric expression.
Syntax:
expression1 - expression2
or-expression2
Parts:
expression1
: Optional. Any numeric or string expression.
expression2
: Required. Any numeric or string expression. -
Multiply
Represents the * operator.
Multiplies two numbers.
Syntax:
expression1 * expression2
Parts:
expression1
: Required. Any numeric or string expression.
expression2
: Required. Any numeric or string expression. -
Division
Represents the / operator.
Divides two numbers and returns a floating-point result, including any remainder.
TheQUOTIENT
function returns the integer quotient, which drops theremainder.
Syntax:
expression1 / expression2
Parts:
expression1
: Required. Any numeric or string expression.
expression2
: Required. Any numeric or string expression. -
Exponent
Represents the ^ operator.
Raises a number to the power of another number, always as a
double
value.
Syntax:
number ^ exponent
Parts:
number
: Required. Any numeric or string expression.
exponent
: Required. Any numeric or string expression. -
Percentage
Represents the % operator.
Divides a number by 100.
Syntax:
expression1%
Parts:
expression1
: Required. Any numeric or string expression. -
Concatenate
Represents the & operator.
Concatenation operators join multiple strings into a single string. The & operator is defined only for
string
operands, and it always widensits operands tostring
.
Syntax:
expression1 & expression2
Parts:
expression1
: Required. Any expression with a data type that widens to String.
expression2
: Required. Any expression with a data type that widens to String. -
Range
Represents the : operator.
The range operator gives a range of cells within start point and end point reference cells.
Syntax:
range1:range2
Parts:
range1
: Required. Must be a range expression.
range2
: Required. Must be a range expression. -
Union
Represents the,
operator.The union operator combines two or more than two references into a single reference.
Syntax:
range1,range2
Parts:
range1
: Required. Must be a range expression.
range2
: Required. Must be a range expression. -
Intersection
Represents the (space) operator.
The intersection operator gives reference to those cells which are common in two range arguments.
Syntax:
range1 range2
Parts:
range1
: Required. Must be a range expression.
range2
: Required. Must be a range expression. -
Spill
Represents the # operator.
Refers to a range of cells spilled from the specific cell.
Syntax:
expression#
Parts:
expression
: Required. Any cell reference expression. -
Single
Represents the @ operator.
Aggregates a range of cells spilled by Dynamic Array functions into a single cell.
Syntax:
@expression
Parts:
expression
: Required. Any range or function call expression. -
Equality
Represents the = operator.
The equality operator compares two expressions to determine whether or not they are equal.
Syntax:
expression1 = expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression. -
Inequality
Represents the <> operator.
The inequality operator compares two expressions to determine whether they are not equal.
Syntax:
expression1 <> expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression. -
LessThan
Represents the < operator.
The less than operator compares two expressions to determine whether the left side is less than the right side.
Syntax:
expression1 < expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression. -
LessThanOrEqual
Represents the <= operator.
The less than or equal operator compares two expressions to determine whether the left side is less than or equal to the right side.
Syntax:
expression1 <= expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression. -
GreaterThan
Represents the > operator.
The greater than operator compares two expressions to determine whether the left side is greater than the right side.
Syntax:
expression1 > expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression. -
GreaterThanOrEqual
Represents the >= operator.
The greater than operator compares two expressions to determine whether the left side is greater than or equal to the right side.
Syntax:
expression1 >= expression2
Parts:
expression1
: Required. Any expression.
expression2
: Required. Any expression.
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- 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.)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值
-
getValue
public int getValue() -
forValue
-