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 a NumberMultiplier.
Author:
vp 2011.07.11, ic 2011.07.14
  • 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

      public InvocableMap.EntryProcessor getProcessor(String... asArgs)
      Returns a processor instance.
      Specified by:
      getProcessor in interface ProcessorFactory
      Parameters:
      asArgs - processor configuration arguments
      Returns:
      a processor instance
    • toNumber

      protected static Number toNumber(String sNumber)
      Convert the given string into a number.
      Parameters:
      sNumber - number as a string
      Returns:
      numeric representation of the string