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()
BunchMap
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.public void remove(Object key)
BunchMap
key
; get
on this
key will now deliver null
.public ExtendedIterator<Object> keyIterator()
BunchMap
keyIterator
in interface BunchMap
Licenced under the Apache License, Version 2.0