com.twitter.common.stats
Class StatImpl<T>

java.lang.Object
  extended by com.twitter.common.stats.StatImpl<T>
All Implemented Interfaces:
Stat<T>
Direct Known Subclasses:
SampledStat

public abstract class StatImpl<T>
extends Object
implements Stat<T>

A convenience class to not require stat implementers to implement getName().


Constructor Summary
StatImpl(String name)
           
 
Method Summary
 String getName()
          Gets the name of this stat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.twitter.common.stats.Stat
read
 

Constructor Detail

StatImpl

public StatImpl(String name)
Method Detail

getName

public String getName()
Description copied from interface: Stat
Gets the name of this stat. For sake of convention, variable names should be alphanumeric, and use underscores.

Specified by:
getName in interface Stat<T>
Returns:
The variable name.