|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensolaris.os.dtrace.CountValue
public final class CountValue
A long value aggregated by the DTrace count() action.
Immutable. Supports persistence using XMLEncoder.
Aggregation,
Serialized Form| Constructor Summary | |
|---|---|
CountValue(long v)
Creates a value aggregated by the DTrace count() action. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this aggregation value for equality. |
java.lang.Long |
getValue()
Gets the number of aggregated values. |
int |
hashCode()
Overridden to ensure that equal instances have equal hash codes. |
java.lang.String |
toString()
Gets the string representation of getValue(). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CountValue(long v)
count() action.
Supports XML persistence.
v - aggregated value count
java.lang.IllegalArgumentException - if the given count is negative| Method Detail |
|---|
public java.lang.Long getValue()
getValue in interface AggregationValuepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue if and only if the specified object is an
aggregation value of the same Class as this value, and
both values return equal numbers from getValue().public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
getValue().
toString in class java.lang.ObjectgetValue() returned
by Object.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||