Class NumberIncrementorFactory
- java.lang.Object
-
- com.tangosol.coherence.rest.util.processor.NumberIncrementorFactory
-
- All Implemented Interfaces:
ProcessorFactory
public class NumberIncrementorFactory extends Object implements ProcessorFactory
ProcessorFactory
that can be used to create aNumberIncrementor
.- Author:
- vp 2011.07.11, ic 2011.07.14
-
-
Constructor Summary
Constructors Constructor Description NumberIncrementorFactory(boolean fPostIncrement)
Construct an instance of NumberIncrementorFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InvocableMap.EntryProcessor
getProcessor(String... asArgs)
Returns a processor instance.protected static Number
toNumber(String sNumber)
Convert the given string into a number.
-
-
-
Constructor Detail
-
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 Detail
-
getProcessor
public InvocableMap.EntryProcessor getProcessor(String... asArgs)
Returns a processor instance.- Specified by:
getProcessor
in interfaceProcessorFactory
- Parameters:
asArgs
- processor configuration arguments- Returns:
- a processor instance
-
-