Package org.h2.mvstore.tx
Class VersionedBitSet
- java.lang.Object
-
- java.util.BitSet
-
- org.h2.mvstore.tx.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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
version
private long version
-
-
Method Detail
-
getVersion
public long getVersion()
-
setVersion
public void setVersion(long version)
-
clone
public VersionedBitSet clone()
- Overrides:
clone
in classjava.util.BitSet
-
-