Enum Class MoveFlags

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

public enum MoveFlags extends Enum<MoveFlags>
Flags for asynchronous move of a torrent handle storage.
See Also:
  • Enum Constant Details

    • ALWAYS_REPLACE_FILES

      public static final MoveFlags ALWAYS_REPLACE_FILES
      Replace any files in the destination when copying or moving the storage.
    • FAIL_IF_EXIST

      public static final MoveFlags FAIL_IF_EXIST
      If any files that we want to copy exist in the destination, fail the whole operation and don't perform any copy or move. There is an inherent race condition in this mode. The files are checked for existence before the operation starts. In between the check and performing the copy, the destination files may be created, in which case they are replaced.
    • DONT_REPLACE

      public static final MoveFlags DONT_REPLACE
      If any files exist in the target, take those files instead of the ones we may have in the source.
  • Method Details

    • values

      public static MoveFlags[] 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 MoveFlags 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 move_flags_t swig()
      Returns:
      the native value
    • fromSwig

      public static MoveFlags fromSwig(move_flags_t swigValue)
      Parameters:
      swigValue - the native value