| Enum Constant and Description |
|---|
FIVE
*currently the same as 4*
|
FOUR
pieces are preferred over partial pieces, but not over pieces with
lower availability
|
IGNORE
piece or file is not downloaded at all
|
NORMAL
normal priority.
|
SEVEN
maximum priority, availability is disregarded, the piece is
preferred over any other piece with lower priority
|
SIX
piece is as likely to be picked as any piece with availability 1
|
THREE
pieces are as likely to be picked as partial pieces.
|
TWO
higher than normal priority.
|
| Modifier and Type | Method and Description |
|---|---|
static Priority[] |
array(Priority value,
int size) |
static Priority |
fromSwig(int swigValue) |
int |
swig() |
static Priority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Priority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Priority IGNORE
public static final Priority NORMAL
public static final Priority TWO
public static final Priority THREE
public static final Priority FOUR
public static final Priority FIVE
public static final Priority SIX
public static final Priority SEVEN
public static Priority[] values()
for (Priority c : Priority.values()) System.out.println(c);
public static Priority valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int swig()
public static Priority fromSwig(int swigValue)
swigValue - the native value