public interface ByteArrayMap extends IOByteArrayMap
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(byte[] key)
Returns true iff key is present.
|
byte[] |
get(byte[] key)
Gets the byte array associated with key, or none if
this key is not present.
|
IOByteArrayEnumeration |
keys()
Returns a list of all keys in the hash, provided no inserts
or deletes are made while the Enumeration is untraversed.
|
ByteArrayEnumeration |
mkeys()
returns a simple Enumeration (that does not throw IOExceptions)
|
void |
put(byte[] key,
byte[] value)
Associates the byte[] key with the byte[] value in
the hash.
|
boolean |
putNoReplace(byte[] key,
byte[] value)
Associates the byte[] key with the byte[] value in
the hash.
|
boolean |
remove(byte[] key)
Removes the key, value pair whose key is the argument.
|
byte[] get(byte[] key)
get
in interface IOByteArrayMap
void put(byte[] key, byte[] value)
put
in interface IOByteArrayMap
boolean putNoReplace(byte[] key, byte[] value)
putNoReplace
in interface IOByteArrayMap
boolean remove(byte[] key)
remove
in interface IOByteArrayMap
boolean containsKey(byte[] key)
containsKey
in interface IOByteArrayMap
IOByteArrayEnumeration keys()
keys
in interface IOByteArrayMap
ByteArrayEnumeration mkeys()