Class SimpleTextLiveDocsFormat.SimpleTextBits

java.lang.Object
org.apache.lucene.codecs.simpletext.SimpleTextLiveDocsFormat.SimpleTextBits
All Implemented Interfaces:
Bits
Enclosing class:
SimpleTextLiveDocsFormat

static class SimpleTextLiveDocsFormat.SimpleTextBits extends Object implements Bits
  • Field Details

    • bits

      final BitSet bits
    • size

      final int size
  • Constructor Details

    • SimpleTextBits

      SimpleTextBits(BitSet bits, int size)
  • Method Details

    • get

      public boolean get(int index)
      Description copied from interface: Bits
      Returns the value of the bit with the specified index.
      Specified by:
      get in interface Bits
      Parameters:
      index - index, should be non-negative and < Bits.length(). The result of passing negative or out of bounds values is undefined by this interface, just don't do it!
      Returns:
      true if the bit is set, false otherwise.
    • length

      public int length()
      Description copied from interface: Bits
      Returns the number of bits in this set
      Specified by:
      length in interface Bits