Class DiskManagerFileInfoSetImpl
java.lang.Object
com.biglybt.core.disk.impl.DiskManagerFileInfoSetImpl
- All Implemented Interfaces:
DiskManagerFileInfoSet
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final DiskManagerHelper(package private) final DiskManagerFileInfoImpl[] -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetFiles()voidload(int[] priorities, boolean[] skipped) intnbFiles()voidsetPriority(int[] newPriorities) Sets the priorities of all filesvoidsetSkipped(boolean[] toChange, boolean setSkipped) Sets a file to skipped status tosetSkippediftoChangedis true for the index.boolean[]setStorageTypes(boolean[] toChange, int newStroageType, boolean force) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DiskManagerFileInfoSet
setStorageTypes
-
Field Details
-
files
-
diskManager
-
-
Constructor Details
-
DiskManagerFileInfoSetImpl
-
-
Method Details
-
load
public void load(int[] priorities, boolean[] skipped) - Specified by:
loadin interfaceDiskManagerFileInfoSet
-
getFiles
- Specified by:
getFilesin interfaceDiskManagerFileInfoSet
-
nbFiles
public int nbFiles()- Specified by:
nbFilesin interfaceDiskManagerFileInfoSet
-
setPriority
public void setPriority(int[] newPriorities) Description copied from interface:DiskManagerFileInfoSetSets the priorities of all files- Specified by:
setPriorityin interfaceDiskManagerFileInfoSet- 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:DiskManagerFileInfoSetSets a file to skipped status tosetSkippediftoChangedis true for the index.- Specified by:
setSkippedin interfaceDiskManagerFileInfoSet- Parameters:
toChange- array size must be # of files in set. Only true values will be set to value ofsetSkippedsetSkipped- 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:
setStorageTypesin interfaceDiskManagerFileInfoSet- Parameters:
toChange-newStroageType-force- may discard file state, use with care...- Returns:
-