Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
NumberMultiplier Constructor (PropertyManipulator, Object, Boolean)
NumberMultiplier Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Construct an NumberMultiplier processor that will increment a property value by a specified amount, returning either the old or the new value as specified.

Namespace: Tangosol.Util.Processor
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public NumberMultiplier(
    	PropertyManipulator manipulator,
    	Object numInc,
    	bool postIncrement
    )

#### Parameters

manipulator
  Type: Tangosol.Util.Processor..::.PropertyManipulator
  The PropertyManipulator; could be null.

numInc
  Type: System..::.Object
  The object representing the magnitude and sign of the multiplier.

postIncrement
  Type: System..::.Boolean
  Pass true to return the value as it was before it was multiplied, or pass false to return the value as it is after it is multiplied.

# Remarks

The .NET type of the original property value will dictate the way the specified factor is interpreted. For example, applying a factor of Double(0.5) to a property value of Int32(4) will result in a new property value of Int32(2).

If the original property value is null, the .NET type of the numFactor parameter will dictate the .NET type of the new value.

# See Also

NumberMultiplier Class
NumberMultiplier Overload
Tangosol.Util.Processor Namespace