public abstract class AbstractRank extends Object implements Rank
Rank providing a few obvious derived methods.| Constructor and Description |
|---|
AbstractRank() |
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Returns the number of ones in the bit vector indexed by this class.
|
long |
rank(long from,
long to)
Returns the number of ones in the specified interval.
|
long |
rankZero(long pos)
Returns the number of zeroes preceding the specified position.
|
long |
rankZero(long from,
long to)
Returns the number of zeroes in the specified interval.
|
public long count()
Rankpublic long rank(long from,
long to)
Rankpublic long rankZero(long pos)
Rankpublic long rankZero(long from,
long to)
Rank