Class BackgroundMemoryList<T>

    • Field Detail

      • MEMORY_CHUNKS_SIZE

        public static final int MEMORY_CHUNKS_SIZE
        Deprecated.
        Number of list elements per list chunk
        See Also:
        Constant Field Values
    • Constructor Detail

      • BackgroundMemoryList

        public BackgroundMemoryList​(String filename,
                                    ISerialiser<T> serialiser)
                             throws IOException
        Deprecated.
        Constructor of a background memory list
        Parameters:
        filename - The file used as background storage
        serialiser - The serialiser used to serialise the elements of the list
        Throws:
        IOException - Thrown if file IO fails
      • BackgroundMemoryList

        public BackgroundMemoryList​(File f,
                                    ISerialiser<T> serialiser)
                             throws IOException
        Deprecated.
        Constructor of a background memory list
        Parameters:
        f - The file used as background storage
        serialiser - The serialiser used to serialise the elements of the list
        Throws:
        IOException - Thrown if file IO fails
    • Method Detail

      • add

        public void add​(int index,
                        T e)
        Deprecated.
        Specified by:
        add in interface List<T>
        Overrides:
        add in class AbstractList<T>
      • get

        public T get​(int index)
        Deprecated.
        Specified by:
        get in interface List<T>
        Specified by:
        get in class AbstractList<T>
      • close

        public void close()
                   throws IOException
        Deprecated.
        Closes the background storage. The list is inaccessible afterwards
        Throws:
        IOException
      • flush

        public void flush()
                   throws IOException
        Deprecated.
        Writes all buffered data to the background storage and clears the current chunk.
        Throws:
        IOException