Enum Class Priority
- All Implemented Interfaces:
Serializable,Comparable<Priority>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription*currently the same as 4*pieces are preferred over partial pieces, but not over pieces with lower availabilitypiece or file is not downloaded at allnormal priority.maximum priority, availability is disregarded, the piece is preferred over any other piece with lower prioritypiece is as likely to be picked as any piece with availability 1pieces are as likely to be picked as partial pieces.higher than normal priority. -
Method Summary
Modifier and TypeMethodDescriptionstatic Priority[]static PriorityfromSwig(int swigValue) intswig()static PriorityReturns the enum constant of this class with the specified name.static Priority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
piece or file is not downloaded at all -
NORMAL
normal priority. Download order is dependent on availability -
TWO
higher than normal priority. Pieces are preferred over pieces with the same availability, but not over pieces with lower availability -
THREE
pieces are as likely to be picked as partial pieces. -
FOUR
pieces are preferred over partial pieces, but not over pieces with lower availability -
FIVE
*currently the same as 4* -
SIX
piece is as likely to be picked as any piece with availability 1 -
SEVEN
maximum priority, availability is disregarded, the piece is preferred over any other piece with lower priority
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
swig
public int swig()- Returns:
- the native value
-
fromSwig
- Parameters:
swigValue- the native value- Returns:
- the enum corresponding value
-
array
-