Enum Class Priority

java.lang.Object
java.lang.Enum<Priority>
com.frostwire.jlibtorrent.Priority
All Implemented Interfaces:
Serializable, Comparable<Priority>, Constable

public enum Priority extends Enum<Priority>
  • Enum Constant Details

    • IGNORE

      public static final Priority IGNORE
      piece or file is not downloaded at all
    • NORMAL

      public static final Priority NORMAL
      normal priority. Download order is dependent on availability
    • TWO

      public static final Priority TWO
      higher than normal priority. Pieces are preferred over pieces with the same availability, but not over pieces with lower availability
    • THREE

      public static final Priority THREE
      pieces are as likely to be picked as partial pieces.
    • FOUR

      public static final Priority FOUR
      pieces are preferred over partial pieces, but not over pieces with lower availability
    • FIVE

      public static final Priority FIVE
      *currently the same as 4*
    • SIX

      public static final Priority SIX
      piece is as likely to be picked as any piece with availability 1
    • SEVEN

      public static final Priority SEVEN
      maximum priority, availability is disregarded, the piece is preferred over any other piece with lower priority
  • Method Details

    • values

      public static Priority[] 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 Priority 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 Priority fromSwig(int swigValue)
      Parameters:
      swigValue - the native value
      Returns:
      the enum corresponding value
    • array

      public static Priority[] array(Priority value, int size)