acme
Class LoggingCounter

java.lang.Object
  extended by acme.Counter
      extended by acme.LoggingCounter

public class LoggingCounter
extends Counter

Questa classe rappresenta un contatore con capacita' di Logging


Constructor Summary
LoggingCounter()
           
LoggingCounter(int v)
           
 
Method Summary
 void inc()
          Incrementa il contatore
 void setValue(int v)
          Setta il valore del contatore al valore specificato
 
Methods inherited from class acme.Counter
getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingCounter

public LoggingCounter()

LoggingCounter

public LoggingCounter(int v)
Method Detail

inc

public void inc()
Description copied from class: Counter
Incrementa il contatore

Overrides:
inc in class Counter

setValue

public void setValue(int v)
Description copied from class: Counter
Setta il valore del contatore al valore specificato

Overrides:
setValue in class Counter
Parameters:
v - valore da settare