Interface DiskManagerFileInfoSet
- All Known Implementing Classes:
DiskManagerFileInfoSetImpl, DownloadManagerController.FileInfoFacadeSet
public interface DiskManagerFileInfoSet
-
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.default boolean[]setStorageTypes(boolean[] toChange, int newStroageType) Sets a file's storage type tonewStorageTypeonly iftoChangedis true for the index.boolean[]setStorageTypes(boolean[] toChange, int newStroageType, boolean force)
-
Method Details
-
load
void load(int[] priorities, boolean[] skipped) -
setStorageTypes
default boolean[] setStorageTypes(boolean[] toChange, int newStroageType) Sets a file's storage type tonewStorageTypeonly iftoChangedis true for the index.- 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
boolean[] setStorageTypes(boolean[] toChange, int newStroageType, boolean force) - Parameters:
toChange-newStroageType-force- may discard file state, use with care...- Returns:
-
setPriority
void setPriority(int[] newPriorities) Sets the priorities of all files- Parameters:
newPriorities- array size must be # of files in set. Use Integer.MIN_VALUE to signify "no change"
-
setSkipped
void setSkipped(boolean[] toChange, boolean setSkipped) Sets a file to skipped status tosetSkippediftoChangedis true for the index.- 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
-
getFiles
DiskManagerFileInfo[] getFiles() -
nbFiles
int nbFiles()
-