public class Number extends AbstractCounter
Modifier and Type | Method and Description |
---|---|
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.
|
addAggregate, getName, getType, propagate
public Number(String name)
public double increment()
Counter
increment
in interface Counter
increment
in class AbstractCounter
public double incrementBy(double value)
Counter
incrementBy
in interface Counter
incrementBy
in class AbstractCounter
value
- the amount to increment the counter bypublic double decrement()
Counter
decrement
in interface Counter
decrement
in class AbstractCounter
public void setRawValue(double value)
Counter
setRawValue
in interface Counter
setRawValue
in class AbstractCounter
value
- the new value of the counterpublic double nextValue()
Counter
nextValue
in interface Counter
nextValue
in class AbstractCounter
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.