public class HashedBunchMap extends HashCommon<Object> implements BunchMap
HashCommon.NotifyEmptycapacity| Constructor and Description |
|---|
HashedBunchMap() |
| 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. |
void |
put(Object key,
TripleBunch value)
Associate
key and value. |
long |
size()
The number of items in the bunch.
|
getItemForTestingAt, keyIterator, keyIterator, removeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyIterator, removepublic void clear()
public 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.Licenced under the Apache License, Version 2.0