public class SeqnoRange extends Seqno
构造器和说明 |
---|
SeqnoRange(long low,
long high) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear(long... nums) |
void |
clear(long num) |
boolean |
contains(long num) |
boolean |
get(long num) |
java.util.Collection<Range> |
getBits(boolean value)
Returns ranges of all bit set to value
|
long |
getHigh() |
protected int |
getIndex(long num) |
java.util.Collection<Range> |
getMessagesToRetransmit() |
int |
getNumberOfMissingMessages() |
int |
getNumberOfReceivedMessages() |
java.lang.String |
print() |
java.lang.String |
printBits(boolean value) |
void |
set(long... nums) |
void |
set(long num) |
int |
size() |
java.lang.String |
toString() |
public long getHigh()
public void set(long... nums)
public void clear(long... nums)
public int getNumberOfReceivedMessages()
getNumberOfReceivedMessages
在类中 Seqno
public int getNumberOfMissingMessages()
getNumberOfMissingMessages
在类中 Seqno
public java.util.Collection<Range> getMessagesToRetransmit()
getMessagesToRetransmit
在类中 Seqno
protected int getIndex(long num)
public java.lang.String printBits(boolean value)
public java.util.Collection<Range> getBits(boolean value)
value
- If true, returns all bits set to 1, else 0