public class BigNumberCoercer extends java.lang.Object implements IJsonFormatTypeCoercer
"big-integer" and "big-decimal" formats. Maps them to corresponding Java
classes BigInteger and BigDecimal. Note these are non-standard JSON Schema
formats, but they fill a void where an API must use "big" numbers instead of "integer"
or "number"._coercionProviders, _instances| Constructor and Description |
|---|
BigNumberCoercer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
coerce(java.lang.Object value,
java.lang.reflect.Type type) |
java.util.Map<java.lang.String,java.lang.Class<?>> |
getFormats() |
java.lang.Object |
toBindingValue(java.lang.Object value) |
clone, emptyArray, equals, finalize, getClass, hashCode, jailbreak, notify, notifyAll, toString, wait, wait, waitgetpublic java.util.Map<java.lang.String,java.lang.Class<?>> getFormats()
getFormats in interface IJsonFormatTypeCoercer"date-time"->LocalDateTime.class to be
referenced in Json Schema "format" types.public java.lang.Object coerce(java.lang.Object value,
java.lang.reflect.Type type)
coerce in interface ICoercionProviderpublic java.lang.Object toBindingValue(java.lang.Object value)
toBindingValue in interface ICoercionProviderCopyright © 2023. All rights reserved.