Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.rest.util.processor
Class NumberIncrementorFactory

java.lang.Object
  extended by com.tangosol.coherence.rest.util.processor.NumberIncrementorFactory

All Implemented Interfaces:
ProcessorFactory

public class NumberIncrementorFactory
extends java.lang.Object
implements ProcessorFactory

ProcessorFactory that can be used to create a NumberIncrementor.

Author:
vp 2011.07.11, ic 2011.07.14

Constructor Summary
NumberIncrementorFactory(boolean fPostIncrement)
          Construct an instance of NumberIncrementorFactory.

 

Method Summary
 InvocableMap.EntryProcessor getProcessor(java.lang.String[] asArgs)
          Returns a processor instance.
protected static java.lang.Number toNumber(java.lang.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(java.lang.String[] asArgs)
Returns a processor instance.
Specified by:
getProcessor in interface ProcessorFactory
Parameters:
asArgs - processor configuration arguments
Returns:
a processor instance

toNumber

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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.