public static enum BinaryOperation.OpType extends Enum<BinaryOperation.OpType>
| 枚举常量和说明 |
|---|
DIVIDE
This operation represents a division as in 4 / 2.
|
MINUS
This operation represents a subtraction as in 2 - 1.
|
MULTIPLY
This operation represents a multiplication as in 2 * 3.
|
PLUS
This operation represents an addition as in 1 + 2.
|
public static final BinaryOperation.OpType PLUS
public static final BinaryOperation.OpType MINUS
public static final BinaryOperation.OpType MULTIPLY
public static final BinaryOperation.OpType DIVIDE
public static BinaryOperation.OpType[] values()
for (BinaryOperation.OpType c : BinaryOperation.OpType.values()) System.out.println(c);
public static BinaryOperation.OpType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022. All rights reserved.