com.espertech.esper.util
Interface SimpleNumberCoercer


public interface SimpleNumberCoercer

Interface for number coercion.


Method Summary
 java.lang.Number coerceBoxed(java.lang.Number numToCoerce)
          Coerce the given number to a previously determined type, assuming the type is a Boxed type.
 

Method Detail

coerceBoxed

java.lang.Number coerceBoxed(java.lang.Number numToCoerce)
Coerce the given number to a previously determined type, assuming the type is a Boxed type. Allows coerce to lower resultion number. Does't coerce to primitive types.

Parameters:
numToCoerce - is the number to coerce to the given type
Returns:
the numToCoerce as a value in the given result type

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com