Package org.mapsforge.map.util
Enum PausableThread.ThreadPriority
- java.lang.Object
-
- java.lang.Enum<PausableThread.ThreadPriority>
-
- org.mapsforge.map.util.PausableThread.ThreadPriority
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PausableThread.ThreadPriority>
- Enclosing class:
- PausableThread
protected static enum PausableThread.ThreadPriority extends java.lang.Enum<PausableThread.ThreadPriority>
Specifies the scheduling priority of aThread
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABOVE_NORMAL
BELOW_NORMAL
HIGHEST
The maximum priority a thread can have.LOWEST
The minimum priority a thread can have.NORMAL
The default priority of a thread.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PausableThread.ThreadPriority
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PausableThread.ThreadPriority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABOVE_NORMAL
public static final PausableThread.ThreadPriority ABOVE_NORMAL
-
BELOW_NORMAL
public static final PausableThread.ThreadPriority BELOW_NORMAL
-
HIGHEST
public static final PausableThread.ThreadPriority HIGHEST
The maximum priority a thread can have.
-
LOWEST
public static final PausableThread.ThreadPriority LOWEST
The minimum priority a thread can have.
-
NORMAL
public static final PausableThread.ThreadPriority NORMAL
The default priority of a thread.
-
-
Method Detail
-
values
public static PausableThread.ThreadPriority[] 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 (PausableThread.ThreadPriority c : PausableThread.ThreadPriority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PausableThread.ThreadPriority 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
-
-