C# Class Lucene.Net.Support.BitSetSupport

This class provides supporting methods of java.util.BitSet that are not present in System.Collections.BitArray.
Afficher le fichier Open project: paulirwin/lucene.net

Méthodes publiques

Méthode Description
AndNot ( this bitsA, BitArray bitsB ) : void
And_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
BitWiseEquals ( this bitsA, BitArray bitsB ) : bool
Cardinality ( this bits ) : int

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

Clear ( this bits ) : void

Sets all bits to false

Clear ( this bits, int index ) : void

Sets the bit at the given index to false.

Clear ( this bits, int startIdx, int endIdx ) : void
Equal ( this a, OpenBitSet b ) : bool
Flip ( this bits, int startIdx, int endIdx ) : void
NextClearBit ( this bitArray, int index ) : int

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

NextSetBit ( this bitArray, int index ) : int

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

Or_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
PrevSetBit ( this bitArray, int index ) : int
SafeGet ( this a, int loc ) : bool
SafeSet ( this a, int loc, bool value ) : void
Set ( this bits, int index ) : void

Sets the bit at the given index to true.

Set ( this bits, int startIdx, int endIdx ) : void
Set ( this bits, int fromIndex, int toIndex, bool value ) : void

Sets the bit at the given index to true.

Xor_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray

Method Details

AndNot() public static méthode

public static AndNot ( this bitsA, BitArray bitsB ) : void
bitsA this
bitsB System.Collections.BitArray
Résultat void

And_UnequalLengths() public static méthode

public static And_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
bitsA this
bitsB System.Collections.BitArray
Résultat System.Collections.BitArray

BitWiseEquals() public static méthode

public static BitWiseEquals ( this bitsA, BitArray bitsB ) : bool
bitsA this
bitsB System.Collections.BitArray
Résultat bool

Cardinality() public static méthode

Returns the number of bits set to true in this BitSet.
public static Cardinality ( this bits ) : int
bits this The BitArray object.
Résultat int

Clear() public static méthode

Sets all bits to false
public static Clear ( this bits ) : void
bits this The BitArray object.
Résultat void

Clear() public static méthode

Sets the bit at the given index to false.
public static Clear ( this bits, int index ) : void
bits this The BitArray object.
index int The position to set to false.
Résultat void

Clear() public static méthode

public static Clear ( this bits, int startIdx, int endIdx ) : void
bits this
startIdx int
endIdx int
Résultat void

Equal() public static méthode

public static Equal ( this a, OpenBitSet b ) : bool
a this
b Lucene.Net.Util.OpenBitSet
Résultat bool

Flip() public static méthode

public static Flip ( this bits, int startIdx, int endIdx ) : void
bits this
startIdx int
endIdx int
Résultat void

NextClearBit() public static méthode

Returns the next un-set bit at or after index, or -1 if no such bit exists.
public static NextClearBit ( this bitArray, int index ) : int
bitArray this
index int the index of bit array at which to start checking
Résultat int

NextSetBit() public static méthode

Returns the next set bit at or after index, or -1 if no such bit exists.
public static NextSetBit ( this bitArray, int index ) : int
bitArray this
index int the index of bit array at which to start checking
Résultat int

Or_UnequalLengths() public static méthode

public static Or_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
bitsA this
bitsB System.Collections.BitArray
Résultat System.Collections.BitArray

PrevSetBit() public static méthode

public static PrevSetBit ( this bitArray, int index ) : int
bitArray this
index int
Résultat int

SafeGet() public static méthode

public static SafeGet ( this a, int loc ) : bool
a this
loc int
Résultat bool

SafeSet() public static méthode

public static SafeSet ( this a, int loc, bool value ) : void
a this
loc int
value bool
Résultat void

Set() public static méthode

Sets the bit at the given index to true.
public static Set ( this bits, int index ) : void
bits this The BitArray object.
index int The position to set to true.
Résultat void

Set() public static méthode

public static Set ( this bits, int startIdx, int endIdx ) : void
bits this
startIdx int
endIdx int
Résultat void

Set() public static méthode

Sets the bit at the given index to true.
public static Set ( this bits, int fromIndex, int toIndex, bool value ) : void
bits this The BitArray object.
fromIndex int The start of the range to set(inclusive)
toIndex int The end of the range to set(exclusive)
value bool the value to set to the range
Résultat void

Xor_UnequalLengths() public static méthode

public static Xor_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
bitsA this
bitsB System.Collections.BitArray
Résultat System.Collections.BitArray