Class SimpleNumberCoercerFactory
java.lang.Object
com.espertech.esper.common.internal.util.SimpleNumberCoercerFactory
Factory for conversion/coercion and widening implementations for numbers.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleNumberCoercer
getCoercer
(EPType fromType, EPTypeClass resultBoxed) Returns a coercer/widener/narrower to a result number type from a given type.getCoercerBigDecimal
(EPTypeClass fromType) Returns a coercer/widener to BigDecimal for a given type.getCoercerBigInteger
(EPTypeClass fromType) Returns a coercer/widener to BigInteger for a given type.
-
Constructor Details
-
SimpleNumberCoercerFactory
public SimpleNumberCoercerFactory()
-
-
Method Details
-
getCoercerBigDecimal
Returns a coercer/widener to BigDecimal for a given type.- Parameters:
fromType
- to widen- Returns:
- widener
-
getCoercerBigInteger
Returns a coercer/widener to BigInteger for a given type.- Parameters:
fromType
- to widen- Returns:
- widener
-
getCoercer
Returns a coercer/widener/narrower to a result number type from a given type.- Parameters:
fromType
- to widen/narrow, can be null to indicate that no shortcut-coercer is usedresultBoxed
- type to widen/narrow to- Returns:
- widener/narrower
-