Class Index<I>

  • Type Parameters:
    I - The type of set, this is an index for.

    public class Index<I>
    extends Object
    An immutable pair if an index and the set this is an index for.
    • Constructor Detail

      • Index

        public Index​(File indexFile,
                     I indexSet)
        Initialise the set.
        Parameters:
        indexFile - The index file.
        indexSet - The set this is an index for. Can be null TODO Should the indexSet be allowed to be null?
        Throws:
        ArgumentNotValid - if indexFile is null.
    • Method Detail

      • getIndexFile

        public File getIndexFile()
        Get the index file.
        Returns:
        The index file.
      • getIndexSet

        public I getIndexSet()
        Get the set this is an index for.
        Returns:
        The set this is an index for.