public interface Reservoir
Modifier and Type | Method and Description |
---|---|
Snapshot |
getSnapshot()
Returns a snapshot of the reservoir's values.
|
int |
size()
Returns the number of values recorded.
|
void |
update(long value)
Adds a new recorded value to the reservoir.
|
int size()
void update(long value)
value
- a new recorded valueSnapshot getSnapshot()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"