Class NumberMultiplierFactory
java.lang.Object
com.tangosol.coherence.rest.util.processor.NumberMultiplierFactory
- All Implemented Interfaces:
ProcessorFactory
ProcessorFactory
that can be used to create a
NumberMultiplier
.- Author:
- vp 2011.07.11, ic 2011.07.14
-
Constructor Summary
ConstructorDescriptionNumberMultiplierFactory
(boolean fPostFactor) Construct an instance of NumberMultiplierFactory. -
Method Summary
Modifier and TypeMethodDescriptiongetProcessor
(String... asArgs) Returns a processor instance.protected static Number
Convert the given string into a number.
-
Constructor Details
-
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 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
-