com.partnersoft.gadgets
Class LoggingThingCounter

java.lang.Object
  extended by com.partnersoft.gadgets.LoggingThingCounter

public class LoggingThingCounter
extends java.lang.Object

Pretty stupid - logs every so many increments based on a count.

Author:
Paul Reavis Copyright 2001 Partner Software, Inc.

Constructor Summary
LoggingThingCounter(java.lang.String description, int frequency)
           
 
Method Summary
 int getCount()
           
 void increment()
           
 void increment(int amount)
           
 void logTotals()
           
 void setCount(int newCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingThingCounter

public LoggingThingCounter(java.lang.String description,
                           int frequency)
Method Detail

getCount

public int getCount()

setCount

public void setCount(int newCount)

increment

public void increment()

increment

public void increment(int amount)

logTotals

public void logTotals()