Package org.klomp.snark.web
Class Sorters.FileAndIndex
java.lang.Object
org.klomp.snark.web.Sorters.FileAndIndex
- Enclosing class:
Sorters
Class to precompute and efficiently sort data
on a torrent file entry.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFileAndIndex
(File file, Storage storage, long[] remainingArray) FileAndIndex
(File file, Storage storage, long[] remainingArray, long[] previewArray) -
Method Summary
-
Field Details
-
file
-
isDirectory
public final boolean isDirectory -
length
public final long length -
remaining
public final long remaining -
preview
public final long preview -
priority
public final int priority -
index
public final int index
-
-
Constructor Details
-
FileAndIndex
- Parameters:
storage
- may be nullremainingArray
- precomputed, non-null iff storage is non-null
-
FileAndIndex
- Parameters:
storage
- may be nullremainingArray
- precomputed, non-null iff storage is non-null
-