Show / Hide Table of Contents

    Interface IBits

    Interface for Bitset-like structures.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public interface IBits

    Properties

    | Improve this Doc View Source

    Length

    Returns the number of bits in this set

    Declaration
    int Length { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Get(Int32)

    Returns the value of the bit with the specified index.

    Declaration
    bool Get(int index)
    Parameters
    Type Name Description
    System.Int32 index

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

    Returns
    Type Description
    System.Boolean

    true if the bit is set, false otherwise.

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)