Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AssertingBits

    Wraps a Lucene.Net.Util.IBits but with additional asserts

    Inheritance
    object
    AssertingBits
    Implements
    IBits
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class AssertingBits : IBits

    Constructors

    AssertingBits(IBits)

    Wraps a Lucene.Net.Util.IBits but with additional asserts

    Declaration
    public AssertingBits(IBits @in)
    Parameters
    Type Name Description
    IBits in

    Properties

    Length

    Returns the number of bits in this set

    Declaration
    public virtual int Length { get; }
    Property Value
    Type Description
    int

    Methods

    Get(int)

    Returns the value of the bit with the specified index.

    Declaration
    public virtual bool Get(int index)
    Parameters
    Type Name Description
    int index

    Index, should be non-negative and < Lucene.Net.Util.IBits.Length. The result of passing negative or out of bounds values is undefined by this interface, just don't do it!

    Returns
    Type Description
    bool

    true if the bit is set, false otherwise.

    Implements

    Lucene.Net.Util.IBits
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.