Class Sorters.FileAndIndex

java.lang.Object
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 Details

  • Constructor Details

    • FileAndIndex

      public FileAndIndex​(File file, Storage storage, long[] remainingArray)
      Parameters:
      storage - may be null
      remainingArray - precomputed, non-null iff storage is non-null
    • FileAndIndex

      public FileAndIndex​(File file, Storage storage, long[] remainingArray, long[] previewArray)
      Parameters:
      storage - may be null
      remainingArray - precomputed, non-null iff storage is non-null