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 TypeMethodDescriptionvoidaddUnchecked(K key) Add the key to the set without checking if it is already present.booleanAdd 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, tryRemoveMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:JenaSetAdd the key to the set if it is not already present. -
addUnchecked
Description copied from interface:JenaSetAdd 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:
addUncheckedin interfaceJenaSet<K>- Parameters:
key- the key to add
-