Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics.stats;

A statistically representative sample of a data stream.
 public interface Sample {
Clears all recorded values.
    void clear();

Returns the number of values recorded.

the number of values recorded
    int size();

Adds a new recorded value to the sample.

value a new recorded value
    void update(long value);

Returns a snapshot of the sample's values.

a snapshot of the sample's values
New to GrepCode? Check out our FAQ X