public class SeqnoRange extends Seqno
Constructor and Description |
---|
SeqnoRange(long low,
long high) |
Modifier and Type | Method and Description |
---|---|
void |
clear(long... nums) |
void |
clear(long num) |
boolean |
contains(long num) |
boolean |
get(long num) |
Collection<Range> |
getBits(boolean value)
Returns ranges of all bit set to value
|
long |
getHigh() |
protected int |
getIndex(int num) |
Collection<Range> |
getMessagesToRetransmit() |
int |
getNumberOfMissingMessages() |
int |
getNumberOfReceivedMessages() |
String |
print() |
String |
printBits(boolean value) |
void |
set(long... nums) |
void |
set(long num) |
int |
size() |
String |
toString() |
public long getHigh()
public void set(long... nums)
public void clear(long... nums)
public int getNumberOfReceivedMessages()
getNumberOfReceivedMessages
in class Seqno
public int getNumberOfMissingMessages()
getNumberOfMissingMessages
in class Seqno
public Collection<Range> getMessagesToRetransmit()
getMessagesToRetransmit
in class Seqno
protected int getIndex(int num)
public String printBits(boolean value)
public Collection<Range> getBits(boolean value)
value
- If true, returns all bits set to 1, else 0Copyright © 2012 JBoss by Red Hat. All Rights Reserved.