Package net.runelite.cache.fs
Class Store
- java.lang.Object
-
- net.runelite.cache.fs.Store
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class Store extends java.lang.Object implements java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexaddIndex(int id)voidclose()booleanequals(java.lang.Object o)IndexfindIndex(int id)IndexgetIndex(IndexType type)java.util.List<Index>getIndexes()StoragegetStorage()inthashCode()voidload()voidremoveIndex(Index index)voidsave()
-
-
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-