Package org.apache.jena.mem
Class WrappedHashMap
- java.lang.Object
-
- org.apache.jena.mem.WrappedHashMap
-
-
Constructor Summary
Constructors Constructor Description WrappedHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear this map: all entries are removed.TripleBunch
get(java.lang.Object key)
Answer the TripleBunch associated withkey
, ornull
if there isn't one.TripleBunch
getOrSet(java.lang.Object key, java.util.function.Function<java.lang.Object,TripleBunch> setter)
Get thekey
and return the value found there; if nothing, calculate thevalue
and insert.ExtendedIterator<java.lang.Object>
keyIterator()
Answer an iterator over all the keys in this map.void
put(java.lang.Object key, TripleBunch value)
Associatekey
andvalue
.void
remove(java.lang.Object key)
Remove any association forkey
;get
on this key will now delivernull
.long
size()
The number of items in the bunch.
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:BunchMap
Clear this map: all entries are removed.
-
size
public long size()
Description copied from interface:BunchMap
The number of items in the bunch.
-
get
public TripleBunch get(java.lang.Object key)
Description copied from interface:BunchMap
Answer the TripleBunch associated withkey
, ornull
if there isn't one.
-
put
public void put(java.lang.Object key, TripleBunch value)
Description copied from interface:BunchMap
Associatekey
andvalue
. Any existing association ofkey
is lost.get
on this key will now deliver this value.
-
getOrSet
public TripleBunch getOrSet(java.lang.Object key, java.util.function.Function<java.lang.Object,TripleBunch> setter)
Description copied from interface:BunchMap
Get thekey
and return the value found there; if nothing, calculate thevalue
and insert. Return the value now the slot.
-
remove
public void remove(java.lang.Object key)
Description copied from interface:BunchMap
Remove any association forkey
;get
on this key will now delivernull
.
-
keyIterator
public ExtendedIterator<java.lang.Object> keyIterator()
Description copied from interface:BunchMap
Answer an iterator over all the keys in this map.- Specified by:
keyIterator
in interfaceBunchMap
-
-