org.basex.util
Class IntMap
java.lang.Object
org.basex.util.TokenSet
org.basex.util.IntMap
public final class IntMap
- extends TokenSet
This is a simple hash map, extending the even simpler
hash set
.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
Method Summary |
void |
add(byte[] key,
int val)
Indexes the specified keys and values. |
int |
get(byte[] key)
Returns the value for the specified key. |
IntMap
public IntMap()
add
public void add(byte[] key,
int val)
- Indexes the specified keys and values.
If the entry exists, the old value is replaced.
- Parameters:
key
- keyval
- value
get
public int get(byte[] key)
- Returns the value for the specified key.
- Parameters:
key
- key to be found
- Returns:
- value or -1 if nothing was found