Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Static Public Member Functions | List of all members
Lucene.Net.Support.BitSetSupport Class Reference

This class provides supporting methods of java.util.BitSet that are not present in System.Collections.BitArray. More...

Static Public Member Functions

static int NextSetBit (System.Collections.BitArray bitArray, int index)
 Returns the next set bit at or after index, or -1 if no such bit exists.
 
static int NextClearBit (System.Collections.BitArray bitArray, int index)
 Returns the next un-set bit at or after index, or -1 if no such bit exists.
 
static int Cardinality (System.Collections.BitArray bits)
 Returns the number of bits set to true in this BitSet.
 

Detailed Description

This class provides supporting methods of java.util.BitSet that are not present in System.Collections.BitArray.

Definition at line 28 of file BitSetSupport.cs.

Member Function Documentation

static int Lucene.Net.Support.BitSetSupport.Cardinality ( System.Collections.BitArray  bits)
static

Returns the number of bits set to true in this BitSet.

Parameters
bitsThe BitArray object.
Returns
The number of bits set to true in this BitSet.

Definition at line 77 of file BitSetSupport.cs.

static int Lucene.Net.Support.BitSetSupport.NextClearBit ( System.Collections.BitArray  bitArray,
int  index 
)
static

Returns the next un-set bit at or after index, or -1 if no such bit exists.

Parameters
bitArray
indexthe index of bit array at which to start checking
Returns
the next set bit or -1

Definition at line 57 of file BitSetSupport.cs.

static int Lucene.Net.Support.BitSetSupport.NextSetBit ( System.Collections.BitArray  bitArray,
int  index 
)
static

Returns the next set bit at or after index, or -1 if no such bit exists.

Parameters
bitArray
indexthe index of bit array at which to start checking
Returns
the next set bit or -1

Definition at line 36 of file BitSetSupport.cs.


The documentation for this class was generated from the following file: