|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.BOB.NamedDB
public class NamedDB
Internal database to relate nicknames to options to values
| Constructor Summary | |
|---|---|
NamedDB()
make initial NULL object |
|
| Method Summary | |
|---|---|
void |
add(Object key,
Object val)
Add object to the array, deletes the old one if it exists |
boolean |
exists(Object key)
returns true if an object exists, else returns false |
Object |
get(Object key)
Get the object, and return it, throws RuntimeException |
int |
getcount()
|
Object |
getnext(int i)
|
void |
getReadLock()
|
void |
getWriteLock()
|
int |
idx(Object key)
Find objects in the array, returns it's index or throws exception |
void |
kill(Object key)
Delete an object from array if it exists |
void |
releaseReadLock()
|
void |
releaseWriteLock()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedDB()
| Method Detail |
|---|
public void getReadLock()
public void releaseReadLock()
public void getWriteLock()
public void releaseWriteLock()
public int idx(Object key)
throws ArrayIndexOutOfBoundsException
key -
ArrayIndexOutOfBoundsException - when key does not existpublic void kill(Object key)
key -
public void add(Object key,
Object val)
key - val -
public Object get(Object key)
throws RuntimeException
key -
RuntimeExceptionpublic boolean exists(Object key)
key -
public Object getnext(int i)
throws RuntimeException
i - index
RuntimeExceptionpublic int getcount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||