Package org.apache.lucene.util
Class Bits.MatchAllBits
java.lang.Object
org.apache.lucene.util.Bits.MatchAllBits
- All Implemented Interfaces:
Bits
- Enclosing interface:
Bits
Bits impl of the specified length with all bits set.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.util.Bits
Bits.MatchAllBits, Bits.MatchNoBits -
Field Summary
Fields inherited from interface org.apache.lucene.util.Bits
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MatchAllBits
public MatchAllBits(int len)
-
-
Method Details
-
get
public boolean get(int index) Description copied from interface:BitsReturns the value of the bit with the specifiedindex.- Specified by:
getin interfaceBits- 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:
trueif the bit is set,falseotherwise.
-
length
public int length()Description copied from interface:BitsReturns the number of bits in this set
-