public static enum BlockInfo.BlockState extends java.lang.Enum<BlockInfo.BlockState>
BlockInfo.state().| Enum Constant and Description |
|---|
FINISHED
The block has been written to disk.
|
NONE
This block has not been downloaded or requested form any peer.
|
REQUESTED
The block has been requested, but not completely downloaded yet.
|
UNKNOWN |
WRITING
The block has been downloaded and is currently queued for being
written to disk.
|
| Modifier and Type | Method and Description |
|---|---|
static BlockInfo.BlockState |
fromSwig(int swigValue) |
int |
swig() |
static BlockInfo.BlockState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BlockInfo.BlockState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockInfo.BlockState NONE
public static final BlockInfo.BlockState REQUESTED
public static final BlockInfo.BlockState WRITING
public static final BlockInfo.BlockState FINISHED
public static final BlockInfo.BlockState UNKNOWN
public static BlockInfo.BlockState[] values()
for (BlockInfo.BlockState c : BlockInfo.BlockState.values()) System.out.println(c);
public static BlockInfo.BlockState 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 BlockInfo.BlockState fromSwig(int swigValue)
swigValue - the native value