Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.util.counters.impl
Class Number

    java.lang.Object
      org.mule.util.counters.impl.AbstractCounter
          org.mule.util.counters.impl.Number

All Implemented Interfaces:
  Counter

    public class Number

extends AbstractCounter

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`
  Returns:
    the new value of the counter

### 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`
  Parameters:
    `value` - the amount to increment the counter by
  Returns:
    the new value of the counter

### 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`
  Returns:
    the new value of the counter

### 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`
  Parameters:
    `value` - the new value of the counter

### 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`
  Returns:
    the value of the counter

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.