Class DiskManagerFileInfoSetImpl

java.lang.Object
com.biglybt.core.disk.impl.DiskManagerFileInfoSetImpl
All Implemented Interfaces:
DiskManagerFileInfoSet

public class DiskManagerFileInfoSetImpl extends Object implements DiskManagerFileInfoSet
  • Field Details

  • Constructor Details

  • Method Details

    • load

      public void load(int[] priorities, boolean[] skipped)
      Specified by:
      load in interface DiskManagerFileInfoSet
    • getFiles

      public DiskManagerFileInfo[] getFiles()
      Specified by:
      getFiles in interface DiskManagerFileInfoSet
    • nbFiles

      public int nbFiles()
      Specified by:
      nbFiles in interface DiskManagerFileInfoSet
    • setPriority

      public void setPriority(int[] newPriorities)
      Description copied from interface: DiskManagerFileInfoSet
      Sets the priorities of all files
      Specified by:
      setPriority in interface DiskManagerFileInfoSet
      Parameters:
      newPriorities - array size must be # of files in set. Use Integer.MIN_VALUE to signify "no change"
    • setSkipped

      public void setSkipped(boolean[] toChange, boolean setSkipped)
      Description copied from interface: DiskManagerFileInfoSet
      Sets a file to skipped status to setSkipped if toChanged is true for the index.
      Specified by:
      setSkipped in interface DiskManagerFileInfoSet
      Parameters:
      toChange - array size must be # of files in set. Only true values will be set to value of setSkipped
      setSkipped - Whether to set file as skipped or unskipped, when toChange[i] is true
    • setStorageTypes

      public boolean[] setStorageTypes(boolean[] toChange, int newStroageType, boolean force)
      Specified by:
      setStorageTypes in interface DiskManagerFileInfoSet
      Parameters:
      toChange -
      newStroageType -
      force - may discard file state, use with care...
      Returns: