Top Methods
com.mchange.util

public Interface ByteArrayMap

extends IOByteArrayMap
Imports
com.mchange.io.*

Method Summary

Modifier and TypeMethod and Description
public boolean
containsKey(byte[] key)

Redeclares com.mchange.io.IOByteArrayMap.containsKey.

Returns true iff key is present.

public byte[]
get(byte[] key)

Redeclares com.mchange.io.IOByteArrayMap.get.

Gets the byte array associated with key, or none if this key is not present.

public IOByteArrayEnumeration
keys()

Redeclares com.mchange.io.IOByteArrayMap.keys.

Returns a list of all keys in the hash, provided no inserts or deletes are made while the Enumeration is untraversed.

public ByteArrayEnumeration
mkeys()

returns a simple Enumeration (that does not throw IOExceptions)

public void
put(byte[] key, byte[] value)

Redeclares com.mchange.io.IOByteArrayMap.put.

Associates the byte[] key with the byte[] value in the hash.

public boolean
putNoReplace(byte[] key, byte[] value)

Redeclares com.mchange.io.IOByteArrayMap.putNoReplace.

Associates the byte[] key with the byte[] value in the hash.

public boolean
remove(byte[] key)

Redeclares com.mchange.io.IOByteArrayMap.remove.

Removes the key, value pair whose key is the argument.

Method Detail

containsKeyback to summary
public boolean containsKey(byte[] key)

Redeclares com.mchange.io.IOByteArrayMap.containsKey.

Returns true iff key is present.

getback to summary
public byte[] get(byte[] key)

Redeclares com.mchange.io.IOByteArrayMap.get.

Gets the byte array associated with key, or none if this key is not present.

keysback to summary
public IOByteArrayEnumeration keys()

Redeclares com.mchange.io.IOByteArrayMap.keys.

Returns a list of all keys in the hash, provided no inserts or deletes are made while the Enumeration is untraversed. If inserts or deletes are made. the behavior is undefined.

mkeysback to summary
public ByteArrayEnumeration mkeys()

returns a simple Enumeration (that does not throw IOExceptions)

putback to summary
public void put(byte[] key, byte[] value)

Redeclares com.mchange.io.IOByteArrayMap.put.

Associates the byte[] key with the byte[] value in the hash. If key is already present in the map, the old value associated with it is replaced by value.

putNoReplaceback to summary
public boolean putNoReplace(byte[] key, byte[] value)

Redeclares com.mchange.io.IOByteArrayMap.putNoReplace.

Associates the byte[] key with the byte[] value in the hash. Fails (and returns false) if key is already present in the map.

removeback to summary
public boolean remove(byte[] key)

Redeclares com.mchange.io.IOByteArrayMap.remove.

Removes the key, value pair whose key is the argument.