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) |
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
in class Seqno
public int getNumberOfMissingMessages()
getNumberOfMissingMessages
in class Seqno
public java.util.Collection<Range> getMessagesToRetransmit()
getMessagesToRetransmit
in class 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 0Copyright © 1998-2020 Red Hat. All Rights Reserved.