Class Store

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class Store
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • Store

        public Store​(java.io.File folder)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • Store

        public Store​(Storage storage)
              throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getStorage

        public Storage getStorage()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • addIndex

        public Index addIndex​(int id)
      • removeIndex

        public void removeIndex​(Index index)
      • load

        public void load()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • save

        public void save()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getIndexes

        public java.util.List<Index> getIndexes()
      • findIndex

        public Index findIndex​(int id)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object