Enum Class EnumMap.Modifier

java.lang.Object
java.lang.Enum<EnumMap.Modifier>
org.miaixz.bus.core.lang.EnumMap.Modifier
All Implemented Interfaces:
Serializable, Comparable<EnumMap.Modifier>, Constable
Enclosing interface:
EnumMap<E extends EnumMap<E>>

public static enum EnumMap.Modifier extends Enum<EnumMap.Modifier>
修饰符
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    abstract,将一个类声明为抽象类,没有实现的方法,需要子类提供方法实现。
    final修饰符,最终修饰符,指定此变量的值不能变,使用在方法上表示不能被重载
    native,本地修饰符。指定此方法的方法体是用其他语言在程序外部编写的。
    private修饰符,只能被自己访问和修改
    protected修饰符,自身、子类及同一个包中类可以访问
    public修饰符,所有类都能访问
    static修饰符,(静态修饰符)指定变量被所有对象共享,即所有实例都可以使用该变量。变量属于这个类
    strictfp,一旦使用了关键字strictfp来声明某个类、接口或者方法时,那么在这个关键字所声明的范围内所有浮点运算都是精确的,符合IEEE-754规范的。
    synchronized,同步修饰符,在多个线程中,该修饰符用于在运行前,对他所属的方法加锁,以防止其他线程的访问,运行结束后解锁。
    (过度修饰符)指定该变量是系统保留,暂无特别作用的临时性变量,序列化时忽略
    (易失修饰符)指定该变量可以同时被几个线程控制和修改
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    orToInt(int... modifierTypes)
    多个修饰符做“或”操作,表示存在任意一个修饰符
    static int
    orToInt(EnumMap.Modifier... modifierTypes)
    多个修饰符做“或”操作,表示存在任意一个修饰符
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PUBLIC

      public static final EnumMap.Modifier PUBLIC
      public修饰符,所有类都能访问
    • PRIVATE

      public static final EnumMap.Modifier PRIVATE
      private修饰符,只能被自己访问和修改
    • PROTECTED

      public static final EnumMap.Modifier PROTECTED
      protected修饰符,自身、子类及同一个包中类可以访问
    • STATIC

      public static final EnumMap.Modifier STATIC
      static修饰符,(静态修饰符)指定变量被所有对象共享,即所有实例都可以使用该变量。变量属于这个类
    • FINAL

      public static final EnumMap.Modifier FINAL
      final修饰符,最终修饰符,指定此变量的值不能变,使用在方法上表示不能被重载
    • SYNCHRONIZED

      public static final EnumMap.Modifier SYNCHRONIZED
      synchronized,同步修饰符,在多个线程中,该修饰符用于在运行前,对他所属的方法加锁,以防止其他线程的访问,运行结束后解锁。
    • VOLATILE

      public static final EnumMap.Modifier VOLATILE
      (易失修饰符)指定该变量可以同时被几个线程控制和修改
    • TRANSIENT

      public static final EnumMap.Modifier TRANSIENT
      (过度修饰符)指定该变量是系统保留,暂无特别作用的临时性变量,序列化时忽略
    • NATIVE

      public static final EnumMap.Modifier NATIVE
      native,本地修饰符。指定此方法的方法体是用其他语言在程序外部编写的。
    • ABSTRACT

      public static final EnumMap.Modifier ABSTRACT
      abstract,将一个类声明为抽象类,没有实现的方法,需要子类提供方法实现。
    • STRICT

      public static final EnumMap.Modifier STRICT
      strictfp,一旦使用了关键字strictfp来声明某个类、接口或者方法时,那么在这个关键字所声明的范围内所有浮点运算都是精确的,符合IEEE-754规范的。
  • Method Details

    • values

      public static EnumMap.Modifier[] 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

      public static EnumMap.Modifier valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • orToInt

      public static int orToInt(EnumMap.Modifier... modifierTypes)
      多个修饰符做“或”操作,表示存在任意一个修饰符
      Parameters:
      modifierTypes - 修饰符列表,元素不能为空
      Returns:
      “或”之后的修饰符
    • orToInt

      public static int orToInt(int... modifierTypes)
      多个修饰符做“或”操作,表示存在任意一个修饰符
      Parameters:
      modifierTypes - 修饰符列表,元素不能为空
      Returns:
      “或”之后的修饰符