Class SparseBitSet.Cache

  • Enclosing class:
    SparseBitSet

    protected class SparseBitSet.Cache
    extends java.lang.Object
    This class holds the values related to various statistics kept about the bit set. These values are not kept continuously up-to-date. Whenever the values become invalid, the field hash is set to zero, indicating that an update is required.
    See Also:
    SparseBitSet.statisticsUpdate()
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int a2Count
      a2Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.
      protected int a3Count
      a3Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update.
      protected int cardinality
      cardinality is updated by the statisticsUpdate() method.
      protected int count
      count is updated by the statisticsUpdate() method.
      protected int hash
      hash is updated by the statisticsUpdate() method.
      protected int length
      length is updated by the statisticsUpdate() method.
      protected int size
      size is updated by the statisticsUpdate() method.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Cache()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hash

        protected transient int hash
        hash is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed that all the cached values are stale, and must be updated.
      • size

        protected transient int size
        size is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
      • cardinality

        protected transient int cardinality
        cardinality is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
      • length

        protected transient int length
        length is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
      • count

        protected transient int count
        count is updated by the statisticsUpdate() method. If the hash value is zero, it is assumed the all the cached values are stale, and must be updated.
      • a2Count

        protected transient int a2Count
        a2Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update. The hash value is must be zero for all values to be updated.
      • a3Count

        protected transient int a3Count
        a3Count is updated by the statisticsUpdate() method, and will only be correct immediately after a full update. The hash value is must be zero for all values to be updated.
    • Constructor Detail

      • Cache

        protected Cache()