|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Index<Key,Value>
Provides Key/Value storage and retrieval.
Method Summary | |
---|---|
void |
clear()
clear the index |
boolean |
containsKey(Key key)
|
void |
destroy()
Frees any extra storage that the index created. |
Value |
get(Key key)
|
int |
getIndexLocation()
|
boolean |
isEmpty()
|
Value |
put(Key key,
Value entry)
store the key, item |
Value |
putIfAbsent(Key key,
Value entry)
get the value at the given key, or put it if null. |
Value |
remove(Key key)
remove the index key |
int |
size()
|
Method Detail |
---|
void destroy()
void clear()
java.io.IOException
boolean containsKey(Key key)
key
-
java.io.IOException
Value remove(Key key)
key
-
java.io.IOException
Value put(Key key, Value entry)
key
- entry
-
java.io.IOException
Value putIfAbsent(Key key, Value entry)
key
- entry
-
java.io.IOException
Value get(Key key)
key
-
java.io.IOException
int size()
boolean isEmpty()
int getIndexLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |