Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.util
Class TokenMap

    java.lang.Object
      org.basex.util.Set
          org.basex.util.TokenMap

    public final class TokenMap

extends Set

This is a simple hash map, extending the even simpler `hash set`.

Author:
  Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen

Constructor Summary
`TokenMap()`

Method Summary
`void` | `add(byte[] key, byte[] val)` Indexes the specified keys and values.
`byte[]` | `get(byte[] key)` Returns the value for the specified key.
`byte[]` | `value(int p)` Returns the specified value.

Methods inherited from class org.basex.util.Set
`add, delete, id, key, keys, size`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TokenMap

    public TokenMap()

Method Detail

### add

    public void add(byte[] key,
                    byte[] val)

  Indexes the specified keys and values.

  Parameters:
    `key` - key
    `val` - value

### get

    public byte[] get(byte[] key)

  Returns the value for the specified key.

  Parameters:
    `key` - key to be found
  Returns:
    value or null if nothing was found

### value

    public byte[] value(int p)

  Returns the specified value.

  Parameters:
    `p` - value index
  Returns:
    value

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD