java.lang.Object
org.apache.jena.mem2.collection.HashCommonBase<K>
org.apache.jena.mem2.collection.HashCommonSet<K>
- All Implemented Interfaces:
JenaMapSetCommon<K>
,JenaSet<K>
- Direct Known Subclasses:
HashedTripleBunch
Implementation of
JenaSet
based on HashCommonBase
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUnchecked
(K key) Add the key to the set without checking if it is already present.boolean
Add the key to the set if it is not already present.Methods inherited from class org.apache.jena.mem2.collection.HashCommonBase
anyMatch, containsKey, isEmpty, keyIterator, keySpliterator, removeUnchecked, size, tryRemove
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.mem2.collection.JenaMapSetCommon
anyMatch, clear, containsKey, isEmpty, keyIterator, keySpliterator, keyStream, keyStreamParallel, removeUnchecked, size, tryRemove
-
Method Details
-
tryAdd
Description copied from interface:JenaSet
Add the key to the set if it is not already present. -
addUnchecked
Description copied from interface:JenaSet
Add the key to the set without checking if it is already present. Attention: This method must only be used if it is guaranteed that the key is not already present.- Specified by:
addUnchecked
in interfaceJenaSet<K>
- Parameters:
key
- the key to add
-