Constructor and Description |
---|
TokenBoolMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
get(byte[] key)
Returns the value for the specified key.
|
void |
put(byte[] key,
boolean value)
Indexes the specified key and stores the associated value.
|
protected void |
rehash(int newSize)
Rehashes all entries.
|
String |
toString() |
add, add, clear, contains, hash, id, iterator, key, put, read, remove, write
capacity, checkSize, isEmpty, size, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public void put(byte[] key, boolean value)
key
- keyvalue
- valuepublic boolean get(byte[] key)
key
- key to be looked up-1
if the key was not foundprotected void rehash(int newSize)
ASet
Copyright © 2005–2023 BaseX Team. All rights reserved.