Package org.miaixz.bus.core.lang
Enum Class EnumMap.Modifier
- All Implemented Interfaces:
Serializable,Comparable<EnumMap.Modifier>,Constable
修饰符
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionabstract,将一个类声明为抽象类,没有实现的方法,需要子类提供方法实现。final修饰符,最终修饰符,指定此变量的值不能变,使用在方法上表示不能被重载native,本地修饰符。指定此方法的方法体是用其他语言在程序外部编写的。private修饰符,只能被自己访问和修改protected修饰符,自身、子类及同一个包中类可以访问public修饰符,所有类都能访问static修饰符,(静态修饰符)指定变量被所有对象共享,即所有实例都可以使用该变量。变量属于这个类strictfp,一旦使用了关键字strictfp来声明某个类、接口或者方法时,那么在这个关键字所声明的范围内所有浮点运算都是精确的,符合IEEE-754规范的。synchronized,同步修饰符,在多个线程中,该修饰符用于在运行前,对他所属的方法加锁,以防止其他线程的访问,运行结束后解锁。(过度修饰符)指定该变量是系统保留,暂无特别作用的临时性变量,序列化时忽略(易失修饰符)指定该变量可以同时被几个线程控制和修改 -
Method Summary
Modifier and TypeMethodDescriptionstatic intorToInt(int... modifierTypes) 多个修饰符做“或”操作,表示存在任意一个修饰符static intorToInt(EnumMap.Modifier... modifierTypes) 多个修饰符做“或”操作,表示存在任意一个修饰符static EnumMap.ModifierReturns the enum constant of this class with the specified name.static EnumMap.Modifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PUBLIC
public修饰符,所有类都能访问 -
PRIVATE
private修饰符,只能被自己访问和修改 -
PROTECTED
protected修饰符,自身、子类及同一个包中类可以访问 -
STATIC
static修饰符,(静态修饰符)指定变量被所有对象共享,即所有实例都可以使用该变量。变量属于这个类 -
FINAL
final修饰符,最终修饰符,指定此变量的值不能变,使用在方法上表示不能被重载 -
SYNCHRONIZED
synchronized,同步修饰符,在多个线程中,该修饰符用于在运行前,对他所属的方法加锁,以防止其他线程的访问,运行结束后解锁。 -
VOLATILE
(易失修饰符)指定该变量可以同时被几个线程控制和修改 -
TRANSIENT
(过度修饰符)指定该变量是系统保留,暂无特别作用的临时性变量,序列化时忽略 -
NATIVE
native,本地修饰符。指定此方法的方法体是用其他语言在程序外部编写的。 -
ABSTRACT
abstract,将一个类声明为抽象类,没有实现的方法,需要子类提供方法实现。 -
STRICT
strictfp,一旦使用了关键字strictfp来声明某个类、接口或者方法时,那么在这个关键字所声明的范围内所有浮点运算都是精确的,符合IEEE-754规范的。
-
-
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
-
orToInt
多个修饰符做“或”操作,表示存在任意一个修饰符- Parameters:
modifierTypes- 修饰符列表,元素不能为空- Returns:
- “或”之后的修饰符
-
orToInt
public static int orToInt(int... modifierTypes) 多个修饰符做“或”操作,表示存在任意一个修饰符- Parameters:
modifierTypes- 修饰符列表,元素不能为空- Returns:
- “或”之后的修饰符
-