#include <coherence/util/processor/NumberMultiplier.hpp>
Inherits PropertyProcessor.
Supported types are: Byte, Short, Integer, Long, Float, Double, BigInteger and BigDecimal.
Public Types | |
typedef spec::Handle | Handle |
NumberMultiplier Handle definition. | |
typedef spec::View | View |
NumberMultiplier View definition. | |
typedef spec::Holder | Holder |
NumberMultiplier Holder definition. | |
Public Member Functions | |
virtual Object::Holder | process (InvocableMap::Entry::Handle hEntry) const |
virtual void | readExternal (PofReader::Handle hIn) |
virtual void | writeExternal (PofWriter::Handle hOut) const |
virtual String::View | getDescription () const |
Protected Member Functions | |
NumberMultiplier () | |
Construct an NumberMultiplier processor. | |
NumberMultiplier (ValueManipulator::View vManipulator, Number::View vNumFactor, bool fPostFactor) | |
Construct an NumberMultiplier processor that will increment a property value by a specified amount, returning either the old or the new value as specified. | |
Protected Attributes | |
FinalView< Number > | f_vNumFactor |
The number to multiply by. | |
bool | m_fPostFactor |
Whether to return the value before it was multiplied ("post-factor") or after it is multiplied ("pre-factor"). |
NumberMultiplier | ( | ValueManipulator::View | vManipulator, | |
Number::View | vNumFactor, | |||
bool | fPostFactor | |||
) | [protected] |
Construct an NumberMultiplier processor that will increment a property value by a specified amount, returning either the old or the new value as specified.
The type of the vNumFactor parameter will dictate the type of the original and the new value.
vManipulator | the ValueManipulator; could be null | |
vNumFactor | the Number representing the magnitude and sign of the increment | |
fPostFactor | pass true to return the value as it was before it was incremented, or pass false to return the value as it is after it is incremented |