org.dozer.stats
Class Statistic

java.lang.Object
  extended by org.dozer.stats.Statistic

public class Statistic
extends Object

Internal class that provides an interface to a single statistic. Holds all of the statistic entries for the statistic. Only intended for internal use.

Author:
tierney.matt, dmitry.buzdin

Constructor Summary
Statistic(StatisticType type)
           
 
Method Summary
 void clear()
           
 boolean equals(Object object)
           
 Set<StatisticEntry> getEntries()
           
 StatisticEntry getEntry(Object entryKey)
           
 long getStatisticValue(Object entryKey)
           
 StatisticType getType()
           
 int hashCode()
           
 StatisticEntry increment(Object statisticEntryKey, long value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Statistic

public Statistic(StatisticType type)
Method Detail

getType

public StatisticType getType()

increment

public StatisticEntry increment(Object statisticEntryKey,
                                long value)

clear

public void clear()

getEntries

public Set<StatisticEntry> getEntries()

getEntry

public StatisticEntry getEntry(Object entryKey)

getStatisticValue

public long getStatisticValue(Object entryKey)

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2011 dozer. All Rights Reserved.