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

      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