Package org.jboss.util
Class Counter.Wrapper
- java.lang.Object
-
- org.jboss.util.Counter
-
- org.jboss.util.Counter.Wrapper
-
-
Field Summary
Fields Modifier and Type Field Description protected CountercounterThe wrapped counterprivate static longserialVersionUIDThe serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Return a cloned copy of this object.intdecrement()Decrement the counter.booleanequals(java.lang.Object obj)Check if the given object is equal to this.intgetCount()Return the current value of the counter.intincrement()Increment the counter.voidreset()Reset the counter to zero.java.lang.StringtoString()Return a string representation of this.-
Methods inherited from class org.jboss.util.Counter
makeDirectional, makeSynchronized
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The serialVersionUID- See Also:
- Constant Field Values
-
counter
protected final Counter counter
The wrapped counter
-
-
Constructor Detail
-
Wrapper
public Wrapper(Counter counter)
-
-
Method Detail
-
increment
public int increment()
Description copied from class:CounterIncrement the counter. (Optional operation)
-
decrement
public int decrement()
Description copied from class:CounterDecrement the counter. (Optional operation)
-
getCount
public int getCount()
Description copied from class:CounterReturn the current value of the counter.
-
reset
public void reset()
Description copied from class:CounterReset the counter to zero. (Optional operation)
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:CounterCheck if the given object is equal to this.
-
toString
public java.lang.String toString()
Description copied from class:CounterReturn a string representation of this.
-
-