org.klomp.snark.web
Class Sorters.FileAndIndex

java.lang.Object
  extended by org.klomp.snark.web.Sorters.FileAndIndex
Enclosing class:
Sorters

public static class Sorters.FileAndIndex
extends Object

Class to precompute and efficiently sort data on a torrent file entry.


Field Summary
 File file
           
 int index
           
 boolean isDirectory
           
 long length
           
 int priority
           
 long remaining
           
 
Constructor Summary
Sorters.FileAndIndex(File file, Storage storage)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public final File file

isDirectory

public final boolean isDirectory

length

public final long length

remaining

public final long remaining

priority

public final int priority

index

public final int index
Constructor Detail

Sorters.FileAndIndex

public Sorters.FileAndIndex(File file,
                            Storage storage)
Parameters:
storage - may be null