The BitVector type exposes the following members.

Methods

  NameDescription
Public methodClear
Sets the value of
CopyC#
bit
to zero.
Public methodClone
Public methodCount
Returns the total number of one bits in this vector. This is efficiently computed and cached, so that, if the vector is not changed, no recomputation is done for repeated calls.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet
Returns
CopyC#
true
if
CopyC#
bit
is one and
CopyC#
false
if it is zero.
Public methodGetAndSet
Sets the value of
CopyC#
bit
to true, and returns true if bit was already set
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetRecomputedCount
For testing
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSet
Sets the value of
CopyC#
bit
to one.
Public methodSize
Returns the number of bits in this vector. This is also one greater than the number of the largest valid bit number.
Public methodSubset
Retrieve a subset of this BitVector.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWrite
Writes this vector to the file
CopyC#
name
in Directory
CopyC#
d
, in a format that can be read by the constructor {@link #BitVector(Directory, String)}.

See Also