|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbb.util.BufferFixed.State<E>
public static class BufferFixed.State<E>
Used to record a snapshot of the state of a BufferFixed
instance.
This class is not multithread safe.
(Its immediate state is immutable, however, the deque
field is mutable.)
Field Summary | |
---|---|
Deque<E> |
deque
Copy of the deque field. |
long |
numDropped
Copy of the numDropped field. |
int |
sizeMax
Copy of the sizeMax field. |
Constructor Summary | |
---|---|
private |
BufferFixed.State(BufferFixed<E> buffer)
|
Method Summary | |
---|---|
String |
getDescription()
Returns a short description of the number of items received and possibly dropped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int sizeMax
sizeMax
field.
public final Deque<E> deque
deque
field.
public final long numDropped
numDropped
field.
Constructor Detail |
---|
private BufferFixed.State(BufferFixed<E> buffer)
Method Detail |
---|
public String getDescription()
Contract: the result is never blank
, and never ends with a newline sequence (altho it may internally contain newlines).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |