| Constructor and Description |
|---|
WrappedHashMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear this map: all entries are removed.
|
TripleBunch |
get(Object key)
Answer the TripleBunch associated with
key, or
null if there isn't one. |
TripleBunch |
getOrSet(Object key,
Function<Object,TripleBunch> setter)
Get the
key and return the value found there; if nothing,
calculate the value and insert. |
ExtendedIterator<Object> |
keyIterator()
Answer an iterator over all the keys in this map.
|
void |
put(Object key,
TripleBunch value)
Associate
key and value. |
void |
remove(Object key)
Remove any association for
key; get on this
key will now deliver null. |
long |
size()
The number of items in the bunch.
|
public void clear()
BunchMappublic long size()
BunchMappublic TripleBunch get(Object key)
BunchMapkey, or
null if there isn't one.public void put(Object key, TripleBunch value)
BunchMapkey and value. Any existing
association of key is lost. get on this key
will now deliver this value.public TripleBunch getOrSet(Object key, Function<Object,TripleBunch> setter)
BunchMapkey and return the value found there; if nothing,
calculate the value and insert. Return the value now the slot.public void remove(Object key)
BunchMapkey; get on this
key will now deliver null.public ExtendedIterator<Object> keyIterator()
BunchMapkeyIterator in interface BunchMapLicenced under the Apache License, Version 2.0