public class HashedBunchMap extends HashCommon<Object> implements BunchMap
HashCommon.NotifyEmpty
capacity
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, remove
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
keyIterator, remove
public void clear()
public long size()
BunchMap
public TripleBunch get(Object key)
BunchMap
key
, or
null
if there isn't one.public void put(Object key, TripleBunch value)
BunchMap
key
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)
BunchMap
key
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