APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.marlin.stats

public final Class Histogram

extends StatLong
Class Inheritance

Generic histogram based on long statistics

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
private final StatLong[]
pack-priv static final int[]
Inherited from com.sun.marlin.stats.StatLong:
countmaxminnamesum

Constructor Summary

AccessConstructor and Description
public
Histogram(final String name)

Method Summary

Modifier and TypeMethod and Description
public void
public void
pack-priv static int
bucket(int val)

public void
public String
toString()

Overrides com.sun.marlin.stats.StatLong.toString.

Returns a string representation of the object.

Inherited from com.sun.marlin.stats.StatLong:
toStringtrimTo3Digits

Field Detail

BUCKETback to summary
pack-priv static final int BUCKET
LASTback to summary
pack-priv static final int LAST
MAXback to summary
pack-priv static final int MAX
statsback to summary
private final StatLong[] stats
STEPSback to summary
pack-priv static final int[] STEPS

Constructor Detail

Histogramback to summary
public Histogram(final String name)

Method Detail

addback to summary
public void add(int val)

Overrides com.sun.marlin.stats.StatLong.add.

Annotations
@Override
addback to summary
public void add(long val)

Overrides com.sun.marlin.stats.StatLong.add.

Annotations
@Override
bucketback to summary
pack-priv static int bucket(int val)
resetback to summary
public void reset()

Overrides com.sun.marlin.stats.StatLong.reset.

Annotations
@Override
toStringback to summary
public String toString()

Overrides com.sun.marlin.stats.StatLong.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override