Package org.opensolaris.os.dtrace
Class MaxValue
- java.lang.Object
-
- org.opensolaris.os.dtrace.MaxValue
-
- All Implemented Interfaces:
java.io.Serializable,AggregationValue
public final class MaxValue extends java.lang.ObjectAlongvalue aggregated by the DTracemax()action.Immutable. Supports persistence using
XMLEncoder.- See Also:
Aggregation, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaxValue(long v)Creates a value aggregated by the DTracemax()action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Compares the specified object with this aggregation value for equality.java.lang.LonggetValue()Gets the maximum of the aggregated values.inthashCode()Overridden to ensure that equal instances have equal hash codes.java.lang.StringtoString()Gets the string representation ofAggregationValue.getValue().
-
-
-
Method Detail
-
getValue
public java.lang.Long getValue()
Gets the maximum of the aggregated values.- Specified by:
getValuein interfaceAggregationValue- Returns:
- the maximum of the aggregated values
-
equals
public boolean equals(java.lang.Object o)
Compares the specified object with this aggregation value for equality. Defines equality as having the same type and the same numeric value.- Overrides:
equalsin classjava.lang.Object- Returns:
trueif and only if the specified object is an aggregation value of the sameClassas this value, and both values return equal numbers fromAggregationValue.getValue().
-
hashCode
public int hashCode()
Overridden to ensure that equal instances have equal hash codes.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Gets the string representation ofAggregationValue.getValue().- Overrides:
toStringin classjava.lang.Object- Returns:
- the string representation of
AggregationValue.getValue()returned byObject.toString()
-
-