Enum Class MonoGCHandleType

java.lang.Object
java.lang.Enum<MonoGCHandleType>
starray.java.mono4j.enums.MonoGCHandleType
所有已实现的接口:
Serializable, Comparable<MonoGCHandleType>, Constable, CSharpEnum.CSharpEnumValue

public enum MonoGCHandleType extends Enum<MonoGCHandleType> implements CSharpEnum.CSharpEnumValue
Represents the type of a garbage collection handle in Mono. Corresponds to the MonoGCHandleType in Mono's metadata/mono-gc.h
  • 枚举常量详细资料

    • MONO_GC_HANDLE_WEAK

      public static final MonoGCHandleType MONO_GC_HANDLE_WEAK
      Weak reference
    • MONO_GC_HANDLE_WEAK_TRACK_RESURRECTION

      public static final MonoGCHandleType MONO_GC_HANDLE_WEAK_TRACK_RESURRECTION
      Weak reference (track resurrection)
    • MONO_GC_HANDLE_NORMAL

      public static final MonoGCHandleType MONO_GC_HANDLE_NORMAL
      Normal reference
    • MONO_GC_HANDLE_PINNED

      public static final MonoGCHandleType MONO_GC_HANDLE_PINNED
      Pinned reference
  • 方法详细资料

    • values

      public static MonoGCHandleType[] 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

      public static MonoGCHandleType 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getValue

      public int getValue()
      指定者:
      getValue 在接口中 CSharpEnum.CSharpEnumValue
    • fromValue

      public static MonoGCHandleType fromValue(int value)