Enum Class BlockInfo.BlockState

java.lang.Object
java.lang.Enum<BlockInfo.BlockState>
com.frostwire.jlibtorrent.BlockInfo.BlockState
All Implemented Interfaces:
Serializable, Comparable<BlockInfo.BlockState>, Constable
Enclosing class:
BlockInfo

public static enum BlockInfo.BlockState extends Enum<BlockInfo.BlockState>
This is the enum used for BlockInfo.state().
  • Enum Constant Details

    • NONE

      public static final BlockInfo.BlockState NONE
      This block has not been downloaded or requested form any peer.
    • REQUESTED

      public static final BlockInfo.BlockState REQUESTED
      The block has been requested, but not completely downloaded yet.
    • WRITING

      public static final BlockInfo.BlockState WRITING
      The block has been downloaded and is currently queued for being written to disk.
    • FINISHED

      public static final BlockInfo.BlockState FINISHED
      The block has been written to disk.
    • UNKNOWN

      public static final BlockInfo.BlockState UNKNOWN
  • Method Details

    • values

      public static BlockInfo.BlockState[] 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

      public static BlockInfo.BlockState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • swig

      public int swig()
      Returns:
      the native value
    • fromSwig

      public static BlockInfo.BlockState fromSwig(int swigValue)
      Parameters:
      swigValue - the native value
      Returns:
      the state