com.cleancode.test
Class TestHarness.Counter

java.lang.Object
  extended by com.cleancode.test.TestHarness.Counter
Enclosing class:
TestHarness

public class TestHarness.Counter
extends Object

A basic counter object.


Constructor Summary
TestHarness.Counter()
          Create and reset a Counter object.
 
Method Summary
 int getValue()
          Obtains current value of counter.
 int increment()
          Increments the counter value.
 void reset()
          Resets the counter to zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestHarness.Counter

public TestHarness.Counter()
Create and reset a Counter object.

Method Detail

getValue

public int getValue()
Obtains current value of counter.

Returns:
integer count value

increment

public int increment()
Increments the counter value.

Returns:
updated counter value

reset

public void reset()
Resets the counter to zero.



CleanCode Java Libraries Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads