public class BitArrayBin extends Object implements Serializable
Constructor and Description |
---|
BitArrayBin(int windowSize)
Create a BitArrayBin to a certain window size (number of messages to
keep)
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBit(long index)
Get the boolean value at the index
|
long |
getLastSetIndex() |
boolean |
isInOrder(long index)
Test if in order
|
boolean |
setBit(long index,
boolean value)
Set a bit
|
public BitArrayBin(int windowSize)
windowSize
- public boolean setBit(long index, boolean value)
index
- value
- public boolean isInOrder(long index)
index
- public boolean getBit(long index)
index
- public long getLastSetIndex()
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.