Package com.webcodepro.shrinkit
Enum ThreadKind
- java.lang.Object
-
- java.lang.Enum<ThreadKind>
-
- com.webcodepro.shrinkit.ThreadKind
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ThreadKind>
public enum ThreadKind extends java.lang.Enum<ThreadKind>
Define and decode the thread_kind field.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOCATED_SPACE
APPLE_IIGS_ICON
ASCII_TEXT
CREATE_DIRECTORY
DATA_FORK
DISK_IMAGE
FILENAME
RESOURCE_FORK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThreadKind
find(int threadKind, ThreadClass threadClass)
Find the specific ThreadKind.static ThreadKind
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ThreadKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ThreadKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThreadKind c : ThreadKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThreadKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
find
public static ThreadKind find(int threadKind, ThreadClass threadClass)
Find the specific ThreadKind.- Throws:
java.lang.IllegalArgumentException
- when the thread_kind cannot be determined
-
-