Interface Sized

All Known Subinterfaces:
FastTripleBunch, JenaMap<K,V>, JenaMapIndexed<K,V>, JenaMapSetCommon<E>, JenaSet<E>, JenaSetHashOptimized<E>, JenaSetIndexed<E>, NodeToTriplesMap, TripleBunch
All Known Implementing Classes:
ArrayBunch, FastArrayBunch, FastHashBase, FastHashedBunchMap, FastHashedTripleBunch, FastHashMap, FastHashSet, HashCommonBase, HashCommonMap, HashCommonSet, HashedBunchMap, HashedTripleBunch, NodesToBitmapsMap, NodesToIndices, NodeToTriplesMapMem, TripleSet, TripleSet

public interface Sized
Base interface for sized collections. It is typically used to detect concurrent modifications in iterators and spliterators by snapshotting the size at construction time and rechecking it at each advance/forEach boundary.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
  • Method Details

    • size

      int size()
      Returns:
      the number of elements in the collection