mirror of
https://github.com/apache/lucene.git
synced 2025-02-06 10:08:58 +00:00
Add missing Javadocs
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1189039 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
19768f6e5a
commit
d20b9eba80
@ -146,7 +146,7 @@ public final class FixedBitSet extends DocIdSet implements Bits {
|
||||
public int nextSetBit(int index) {
|
||||
assert index >= 0 && index < numBits;
|
||||
int i = index >> 6;
|
||||
int subIndex = index & 0x3f; // index within the word
|
||||
final int subIndex = index & 0x3f; // index within the word
|
||||
long word = bits[i] >> subIndex; // skip all the bits to the right of index
|
||||
|
||||
if (word!=0) {
|
||||
@ -163,6 +163,9 @@ public final class FixedBitSet extends DocIdSet implements Bits {
|
||||
return -1;
|
||||
}
|
||||
|
||||
/** Returns the index of the last set bit before or on the index specified.
|
||||
* -1 is returned if there are no more set bits.
|
||||
*/
|
||||
public int prevSetBit(int index) {
|
||||
assert index >= 0 && index < numBits: "index=" + index + " numBits=" + numBits;
|
||||
int i = index >> 6;
|
||||
|
Loading…
x
Reference in New Issue
Block a user