Interface ByteArrayMap

All Superinterfaces:
IOByteArrayMap

public interface ByteArrayMap extends IOByteArrayMap
  • Method Summary

    Modifier and Type
    Method
    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.
    Returns a list of all keys in the hash, provided no inserts or deletes are made while the Enumeration is untraversed.
    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.
  • Method Details

    • get

      byte[] get(byte[] key)
      Gets the byte array associated with key, or none if this key is not present.
      Specified by:
      get in interface IOByteArrayMap
    • put

      void put(byte[] key, byte[] value)
      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.
      Specified by:
      put in interface IOByteArrayMap
    • putNoReplace

      boolean putNoReplace(byte[] key, byte[] value)
      Associates the byte[] key with the byte[] value in the hash. Fails (and returns false) if key is already present in the map.
      Specified by:
      putNoReplace in interface IOByteArrayMap
    • remove

      boolean remove(byte[] key)
      Removes the key, value pair whose key is the argument.
      Specified by:
      remove in interface IOByteArrayMap
    • containsKey

      boolean containsKey(byte[] key)
      Returns true iff key is present.
      Specified by:
      containsKey in interface 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.
      Specified by:
      keys in interface IOByteArrayMap
    • mkeys

      returns a simple Enumeration (that does not throw IOExceptions)