java.lang.Object
org.apache.jena.mem.WrappedHashMap
- All Implemented Interfaces:
BunchMap
An implementation of BunchMap that delegates to a [Hashed]Map.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear this map: all entries are removed.Answer the TripleBunch associated withkey
, ornull
if there isn't one.getOrSet
(Object key, Function<Object, TripleBunch> setter) Get thekey
and return the value found there; if nothing, calculate thevalue
and insert.Answer an iterator over all the keys in this map.void
put
(Object key, TripleBunch value) Associatekey
andvalue
.void
Remove any association forkey
;get
on this key will now delivernull
.long
size()
The number of items in the bunch.
-
Constructor Details
-
WrappedHashMap
public WrappedHashMap()
-
-
Method Details
-
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
Description copied from interface:BunchMap
Answer the TripleBunch associated withkey
, ornull
if there isn't one. -
put
Description copied from interface:BunchMap
Associatekey
andvalue
. Any existing association ofkey
is lost.get
on this key will now deliver this value. -
getOrSet
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
Description copied from interface:BunchMap
Remove any association forkey
;get
on this key will now delivernull
. -
keyIterator
Description copied from interface:BunchMap
Answer an iterator over all the keys in this map.- Specified by:
keyIterator
in interfaceBunchMap
-