org.mule.util.counters.impl
Class Number

java.lang.Object
  extended byorg.mule.util.counters.impl.AbstractCounter
      extended byorg.mule.util.counters.impl.Number
All Implemented Interfaces:
Counter

public class Number
extends AbstractCounter

Version:
$Revision: 7976 $
Author:
Guillaume Nodet

Constructor Summary
Number(String name)
           
 
Method Summary
 double decrement()
          Decrement the counter's value by 1.0.
 double increment()
          Increment the counter's value by 1.0.
 double incrementBy(double value)
          Increment the counter's value by the specified amount.
 double nextValue()
          Compute and return the value of the counter.
 void setRawValue(double value)
          Set the counter's value to a new value.
 
Methods inherited from class org.mule.util.counters.impl.AbstractCounter
addAggregate, getName, getType, propagate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Number

public Number(String name)
Method Detail

increment

public double increment()
Description copied from interface: Counter
Increment the counter's value by 1.0.

Specified by:
increment in interface Counter
Specified by:
increment in class AbstractCounter

incrementBy

public double incrementBy(double value)
Description copied from interface: Counter
Increment the counter's value by the specified amount.

Specified by:
incrementBy in interface Counter
Specified by:
incrementBy in class AbstractCounter

decrement

public double decrement()
Description copied from interface: Counter
Decrement the counter's value by 1.0.

Specified by:
decrement in interface Counter
Specified by:
decrement in class AbstractCounter

setRawValue

public void setRawValue(double value)
Description copied from interface: Counter
Set the counter's value to a new value.

Specified by:
setRawValue in interface Counter
Specified by:
setRawValue in class AbstractCounter

nextValue

public double nextValue()
Description copied from interface: Counter
Compute and return the value of the counter.

Specified by:
nextValue in interface Counter
Specified by:
nextValue in class AbstractCounter


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.