Serialized Form
-
Package com.zaxxer.sparsebits
-
Class com.zaxxer.sparsebits.SparseBitSet extends Object implements Serializable
- serialVersionUID:
- -6663013367427929992L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Reconstitute theSparseBitSet
instance from a stream (i.e., deserialize it).- Throws:
IOException
- if there is an io errorClassNotFoundException
- if the stream contains an unidentified class- Since:
- 1.6
-
writeObject
private void writeObject(ObjectOutputStream s) throws IOException, InternalError
Save the state of theSparseBitSet
instance to a stream (i.e., serialize it).- Serial Data:
- The default data is emitted, followed by the current
compactionCount for the bit set, and then the
length of the set (the position of the last bit),
followed by the cache.count value (an
int
, the number ofint->long
pairs needed to describe the set), followed by the index (int
) and word (long
) for eachint->long
pair. The mappings need not be emitted in any particular order. This is followed by the hashCode for the set that can be used as an integrity check when the bit set is read back. - Throws:
IOException
- if an io error occursInternalError
- if the SparseBitSet representation is inconsistent- Since:
- 1.6
-
-