|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.Distribution.Bucket
public static final class Distribution.Bucket
A range inclusive at both endpoints and a count of aggregated
values that fall in that range. Buckets in a Distribution
are consecutive, such that the max of one bucket is
always one less than the min of the next bucket (or Long.MAX_VALUE
if it is the last bucket in the Distribution
).
Immutable. Supports persistence using XMLEncoder
.
Constructor Summary | |
---|---|
Distribution.Bucket(long rangeMinimumInclusive,
long rangeMaximumInclusive,
long valuesInRange)
Creates a distribution bucket with the given range and frequency. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this distribution bucket for equality. |
long |
getFrequency()
Gets the number of values in a Distribution that fall
into the range defined by this bucket. |
long |
getMax()
Gets the upper bound of this bucket's range (inclusive). |
long |
getMin()
Gets the lower bound of this bucket's range (inclusive). |
int |
hashCode()
Overridden to ensure that equal buckets have equal hashcodes. |
java.lang.String |
toString()
Gets a string representation of this distribution bucket useful for logging and not intended for display. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Distribution.Bucket(long rangeMinimumInclusive, long rangeMaximumInclusive, long valuesInRange)
rangeMinimumInclusive
- sets the lower bound (inclusive)
returned by getMin()
rangeMaximumInclusive
- sets the upper bound (inclusive)
returned by getMax()
valuesInRange
- sets the value frequency in this
bucket's range returned by getFrequency()
java.lang.IllegalArgumentException
- if rangeMaximumInclusive
is less than rangeMinimumInclusive
Method Detail |
---|
public long getMin()
public long getMax()
public long getFrequency()
Distribution
that fall
into the range defined by this bucket.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Distribution.Bucket
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
class-name[property1 = value1, property2 = value2]
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |