Class VersionedBitSet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    final class VersionedBitSet
    extends java.util.BitSet
    Class VersionedBitSet extends standard BitSet to add a version field. This will allow bit set and version to be changed atomically.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      private long version  
    • Constructor Summary

      Constructors 
      Constructor Description
      VersionedBitSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      VersionedBitSet clone()  
      long getVersion()  
      void setVersion​(long version)  
      • Methods inherited from class java.util.BitSet

        and, andNot, cardinality, clear, clear, clear, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, previousClearBit, previousSetBit, set, set, set, set, size, stream, toByteArray, toLongArray, toString, valueOf, valueOf, valueOf, valueOf, xor
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • version

        private long version
    • Constructor Detail

      • VersionedBitSet

        public VersionedBitSet()
    • Method Detail

      • getVersion

        public long getVersion()
      • setVersion

        public void setVersion​(long version)
      • clone

        public VersionedBitSet clone()
        Overrides:
        clone in class java.util.BitSet