public interface BunchMap
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.
|
void clear()
long size()
TripleBunch get(Object key)
key
, or
null
if there isn't one.void put(Object key, TripleBunch value)
key
and value
. Any existing
association of key
is lost. get
on this key
will now deliver this value.TripleBunch getOrSet(Object key, Function<Object,TripleBunch> setter)
key
and return the value found there; if nothing,
calculate the value
and insert. Return the value now the slot.void remove(Object key)
key
; get
on this
key will now deliver null
.ExtendedIterator<Object> keyIterator()
Licenced under the Apache License, Version 2.0