|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Sample
A statistically representative sample of a data stream.
Method Summary | |
---|---|
void |
clear()
Clears all recorded values. |
Snapshot |
getSnapshot()
Returns a snapshot of the sample's values. |
int |
size()
Returns the number of values recorded. |
void |
update(long value)
Adds a new recorded value to the sample. |
Method Detail |
---|
void clear()
int size()
void update(long value)
value
- a new recorded valueSnapshot getSnapshot()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |