Class NumberIncrementorFactory
java.lang.Object
com.tangosol.coherence.rest.util.processor.NumberIncrementorFactory
- All Implemented Interfaces:
ProcessorFactory
ProcessorFactory
that can be used to create a
NumberIncrementor
.- Author:
- vp 2011.07.11, ic 2011.07.14
-
Constructor Summary
ConstructorDescriptionNumberIncrementorFactory
(boolean fPostIncrement) Construct an instance of NumberIncrementorFactory. -
Method Summary
Modifier and TypeMethodDescriptiongetProcessor
(String... asArgs) Returns a processor instance.protected static Number
Convert the given string into a number.
-
Constructor Details
-
NumberIncrementorFactory
public NumberIncrementorFactory(boolean fPostIncrement) Construct an instance of NumberIncrementorFactory.- Parameters:
fPostIncrement
- pass true to create NumberIncrementors that will return value as it was before it was incremented, or pass false to create NumberIncrementors that will return the value as it is after it is incremented
-
-
Method Details
-
getProcessor
Returns a processor instance.- Specified by:
getProcessor
in interfaceProcessorFactory
- Parameters:
asArgs
- processor configuration arguments- Returns:
- a processor instance
-
toNumber
Convert the given string into a number.- Parameters:
sNumber
- number as a string- Returns:
- numeric representation of the string
-