public enum MathematicsSymbolType extends Enum<MathematicsSymbolType>
文件名:MathematicsSymbolType.java
用途:
编码时间:2022年7月7日 上午8:30:28
修改时间:2022年7月7日 上午8:30:28
Enum Constant and Description |
---|
ADD
加
|
DIVIDE
除
|
EQUALS
等于
|
GREATER
大于
|
GREATER_AND_EQUALS
大于等于
|
LESS
小于
|
LESS_AND_EQUALS
小于等于
|
MULTIPLY
乘
|
NOT_EQUALS
不等于
|
SUBTRACT
减
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
该方法用于返回枚举表示的符号名称
|
String |
getSymbol()
该方法用于返回枚举表示的数学符号
|
static MathematicsSymbolType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MathematicsSymbolType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MathematicsSymbolType ADD
public static final MathematicsSymbolType SUBTRACT
public static final MathematicsSymbolType MULTIPLY
public static final MathematicsSymbolType DIVIDE
public static final MathematicsSymbolType GREATER
public static final MathematicsSymbolType GREATER_AND_EQUALS
public static final MathematicsSymbolType LESS
public static final MathematicsSymbolType LESS_AND_EQUALS
public static final MathematicsSymbolType EQUALS
public static final MathematicsSymbolType NOT_EQUALS
public static MathematicsSymbolType[] values()
for (MathematicsSymbolType c : MathematicsSymbolType.values()) System.out.println(c);
public static MathematicsSymbolType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSymbol()
public String getName()
Copyright © 2024. All rights reserved.