Package com.biglybt.core.disk.impl
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()
void
load
(int[] priorities, boolean[] skipped) int
nbFiles()
void
setPriority
(int[] newPriorities) Sets the priorities of all filesvoid
setSkipped
(boolean[] toChange, boolean setSkipped) Sets a file to skipped status tosetSkipped
iftoChanged
is true for the index.boolean[]
setStorageTypes
(boolean[] toChange, int newStroageType, boolean force) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.core.disk.DiskManagerFileInfoSet
setStorageTypes
-
Field Details
-
files
-
diskManager
-
-
Constructor Details
-
DiskManagerFileInfoSetImpl
-
-
Method Details
-
load
public void load(int[] priorities, boolean[] skipped) - Specified by:
load
in interfaceDiskManagerFileInfoSet
-
getFiles
- Specified by:
getFiles
in interfaceDiskManagerFileInfoSet
-
nbFiles
public int nbFiles()- Specified by:
nbFiles
in interfaceDiskManagerFileInfoSet
-
setPriority
public void setPriority(int[] newPriorities) Description copied from interface:DiskManagerFileInfoSet
Sets the priorities of all files- Specified by:
setPriority
in interfaceDiskManagerFileInfoSet
- Parameters:
newPriorities
- array size must be # of files in set
-
setSkipped
public void setSkipped(boolean[] toChange, boolean setSkipped) Description copied from interface:DiskManagerFileInfoSet
Sets a file to skipped status tosetSkipped
iftoChanged
is true for the index.- Specified by:
setSkipped
in interfaceDiskManagerFileInfoSet
- Parameters:
toChange
- array size must be # of files in set. Only true values will be set to value ofsetSkipped
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 interfaceDiskManagerFileInfoSet
force
- may discard file state, use with care...- Returns:
-