Enum Class BlockInfo.BlockState
- All Implemented Interfaces:
Serializable,Comparable<BlockInfo.BlockState>,Constable
- Enclosing class:
BlockInfo
This is the enum used for
BlockInfo.state().-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe block has been written to disk.This block has not been downloaded or requested form any peer.The block has been requested, but not completely downloaded yet.The block has been downloaded and is currently queued for being written to disk. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockInfo.BlockStatefromSwig(int swigValue) intswig()static BlockInfo.BlockStateReturns the enum constant of this class with the specified name.static BlockInfo.BlockState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
This block has not been downloaded or requested form any peer. -
REQUESTED
The block has been requested, but not completely downloaded yet. -
WRITING
The block has been downloaded and is currently queued for being written to disk. -
FINISHED
The block has been written to disk. -
UNKNOWN
-
-
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 state
-