Class NumberMultiplierFactory
- java.lang.Object
-
- com.tangosol.coherence.rest.util.processor.NumberMultiplierFactory
-
- All Implemented Interfaces:
ProcessorFactory
public class NumberMultiplierFactory extends Object implements ProcessorFactory
ProcessorFactory
that can be used to create aNumberMultiplier
.- Author:
- vp 2011.07.11, ic 2011.07.14
-
-
Constructor Summary
Constructors Constructor Description NumberMultiplierFactory(boolean fPostFactor)
Construct an instance of NumberMultiplierFactory.
-
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
-
NumberMultiplierFactory
public NumberMultiplierFactory(boolean fPostFactor)
Construct an instance of NumberMultiplierFactory.- Parameters:
fPostFactor
- pass true to create NumberMultipliers that will return value as it was before it was multiplied, or pass false to create NumberMultipliers that will return the value as it is after it is multiplied
-
-
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
-
-