Interface JenaSet<E>

Type Parameters:
E -
All Superinterfaces:
JenaMapSetCommon<E>
All Known Subinterfaces:
FastTripleBunch, JenaSetHashOptimized<E>, NodeToTriplesMap, TripleBunch
All Known Implementing Classes:
ArrayBunch, FastArrayBunch, FastHashedTripleBunch, FastHashSet, HashCommonSet, HashedTripleBunch, NodeToTriplesMapMem

public interface JenaSet<E> extends JenaMapSetCommon<E>
Set interface specialized for the use cases in triple store implementations.
  • Method Details

    • tryAdd

      boolean tryAdd(E key)
      Add the key to the set if it is not already present.
      Parameters:
      key - the key to add
      Returns:
      true if the key was added, false if it was already present
    • addUnchecked

      void addUnchecked(E key)
      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.
      Parameters:
      key - the key to add