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 Counter
counter
The wrapped counterprivate static long
serialVersionUID
The serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Return a cloned copy of this object.int
decrement()
Decrement the counter.boolean
equals(java.lang.Object obj)
Check if the given object is equal to this.int
getCount()
Return the current value of the counter.int
increment()
Increment the counter.void
reset()
Reset the counter to zero.java.lang.String
toString()
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:Counter
Increment the counter. (Optional operation)
-
decrement
public int decrement()
Description copied from class:Counter
Decrement the counter. (Optional operation)
-
getCount
public int getCount()
Description copied from class:Counter
Return the current value of the counter.
-
reset
public void reset()
Description copied from class:Counter
Reset the counter to zero. (Optional operation)
-
equals
public boolean equals(java.lang.Object obj)
Description copied from class:Counter
Check if the given object is equal to this.
-
toString
public java.lang.String toString()
Description copied from class:Counter
Return a string representation of this.
-
-