org.apache.lucene.util

Interface Bits

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface and Description
      static class  Bits.MatchAllBits
      Bits impl of the specified length with all bits set.
      static class  Bits.MatchNoBits
      Bits impl of the specified length with no bits set.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static Bits[] EMPTY_ARRAY 
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      boolean get(int index)
      Returns the value of the bit with the specified index.
      int length()
      Returns the number of bits in this set
    • Method Detail

      • get

        boolean get(int index)
        Returns the value of the bit with the specified index.
        Parameters:
        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:
        true if the bit is set, false otherwise.
      • length

        int length()
        Returns the number of bits in this set