org.gmetrics.result
Class NumberMetricResult
java.lang.Object
org.gmetrics.result.NumberMetricResult
- All Implemented Interfaces:
- groovy.lang.GroovyObject, MetricResult
public class NumberMetricResult
- extends java.lang.Object
- implements groovy.lang.GroovyObject, MetricResult
A MetricResult for numbers (integers, BigDecimals, etc.)
- Version:
- $Revision: 101 $ - $Date: 2010-03-10 19:17:23 -0500 (Wed, 10 Mar 2010) $
- Author:
- Chris Mair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NumberMetricResult
public NumberMetricResult(Metric metric,
java.lang.Object number)
getMetric
public final Metric getMetric()
- Specified by:
getMetric in interface MetricResult
getNumber
public final java.lang.Object getNumber()
getCount
public int getCount()
- Specified by:
getCount in interface MetricResult
getTotal
public java.lang.Object getTotal()
- Specified by:
getTotal in interface MetricResult
getAverage
public java.lang.Object getAverage()
- Specified by:
getAverage in interface MetricResult
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject
invokeMethod
public java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty in interface groovy.lang.GroovyObject
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject
Copyright © 2010. All Rights Reserved.