Constructor and Description |
---|
IntObjMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Resets the data structure.
|
int |
delete(int key)
Deletes the specified key.
|
E |
get(int key)
Returns the value for the specified key.
|
E |
put(int key,
E value)
Indexes the specified key and stores the associated value.
|
protected void |
rehash(int sz)
Rehashes all entries.
|
String |
toString() |
Iterable<E> |
values()
Returns a value iterator.
|
public E put(int key, E value)
key
- keyvalue
- valuepublic E get(int key)
key
- key to be looked upnull
if the key was not foundprotected void rehash(int sz)
ASet
public int delete(int key)
IntSet
ASet.size
is called after
deletions, the original number of entries will be returned.key
- keypublic void clear()
ASet
Copyright © 2005–2015 BaseX Team. All rights reserved.