Class JsonbNumberConverter
- java.lang.Object
-
- org.apache.johnzon.jsonb.converter.JsonbLocaleParserConverterBase<Number>
-
- org.apache.johnzon.jsonb.converter.JsonbNumberConverter
-
- All Implemented Interfaces:
Converter<Number>
,MapperConverter
public class JsonbNumberConverter extends JsonbLocaleParserConverterBase<Number>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.johnzon.mapper.Converter
Converter.TypeAccess
-
-
Field Summary
Fields Modifier and Type Field Description private Supplier<NumberFormat>
delegateFactory
private Queue<NumberFormat>
pool
-
Constructor Summary
Constructors Constructor Description JsonbNumberConverter(jakarta.json.bind.annotation.JsonbNumberFormat numberFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <T> T
execute(Function<NumberFormat,T> function)
Number
fromString(String text)
String
toString(Number instance)
-
Methods inherited from class org.apache.johnzon.jsonb.converter.JsonbLocaleParserConverterBase
newLocale
-
-
-
-
Field Detail
-
delegateFactory
private final Supplier<NumberFormat> delegateFactory
-
pool
private final Queue<NumberFormat> pool
-
-