Enum Class ThreadKind

java.lang.Object
java.lang.Enum<ThreadKind>
com.webcodepro.shrinkit.ThreadKind
All Implemented Interfaces:
Serializable, Comparable<ThreadKind>, Constable

public enum ThreadKind extends Enum<ThreadKind>
Define and decode the thread_kind field.
  • Enum Constant Details

    • ASCII_TEXT

      public static final ThreadKind ASCII_TEXT
    • ALLOCATED_SPACE

      public static final ThreadKind ALLOCATED_SPACE
    • APPLE_IIGS_ICON

      public static final ThreadKind APPLE_IIGS_ICON
    • CREATE_DIRECTORY

      public static final ThreadKind CREATE_DIRECTORY
    • DATA_FORK

      public static final ThreadKind DATA_FORK
    • DISK_IMAGE

      public static final ThreadKind DISK_IMAGE
    • RESOURCE_FORK

      public static final ThreadKind RESOURCE_FORK
    • FILENAME

      public static final ThreadKind FILENAME
  • Method Details

    • values

      public static ThreadKind[] 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 ThreadKind 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
    • find

      public static ThreadKind find(int threadKind, ThreadClass threadClass)
      Find the specific ThreadKind.
      Throws:
      IllegalArgumentException - when the thread_kind cannot be determined