- All Known Implementing Classes:
HashedBunchMap
public interface BunchMap
A pruned (and slightly stewed) version of Map, containing just those operations
required by NodeToTriplesMaps. BunchMaps contain only TripleBunch's.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear this map: all entries are removed.Answer the TripleBunch associated withkey, ornullif there isn't one.getOrSet(Object key, Function<Object, TripleBunch> setter) Get thekeyand return the value found there; if nothing, calculate thevalueand insert.iterator()Answer an iterator over all the keys in this map.voidput(Object key, TripleBunch value) Associatekeyandvalue.voidRemove any association forkey;geton this key will now delivernull.longsize()The number of items in the bunch.
-
Method Details
-
clear
void clear()Clear this map: all entries are removed. -
size
long size()The number of items in the bunch. -
get
Answer the TripleBunch associated withkey, ornullif there isn't one. -
put
Associatekeyandvalue. Any existing association ofkeyis lost.geton this key will now deliver this value. -
getOrSet
Get thekeyand return the value found there; if nothing, calculate thevalueand insert. Return the value now the slot. -
remove
Remove any association forkey;geton this key will now delivernull. -
keyIterator
ExtendedIterator<Object> keyIterator()Answer an iterator over all the keys in this map. -
iterator
Iterator<TripleBunch> iterator() -
spliterator
Spliterator<TripleBunch> spliterator()
-