org.apache.wicket.util.value
Class Count

java.lang.Object
  extended by org.apache.wicket.util.value.Count
All Implemented Interfaces:
Serializable, IClusterable

public final class Count
extends Object
implements IClusterable

A class for counting things.

Since:
1.2.6
Author:
Jonathan Locke
See Also:
Serialized Form

Constructor Summary
Count()
           
 
Method Summary
 void decrement()
          Decreases the count value by one.
 int getCount()
          Retrieves the current count value.
 void increment()
          Increases the count value by one.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Count

public Count()
Method Detail

getCount

public int getCount()
Retrieves the current count value.

Returns:
the count value

increment

public void increment()
Increases the count value by one.


decrement

public void decrement()
Decreases the count value by one.


toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.