public class NumberSerializers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NumberSerializers.DoubleSerializer
This is the special serializer for regular
Double s
(and primitive doubles) |
static class |
NumberSerializers.FloatSerializer |
static class |
NumberSerializers.IntegerSerializer
This is the special serializer for regular
Integer s
(and primitive ints) |
static class |
NumberSerializers.IntLikeSerializer
Similar to
NumberSerializers.IntegerSerializer , but will not cast to Integer:
instead, cast is to Number , and conversion is
by calling Number.intValue() . |
static class |
NumberSerializers.LongSerializer |
static class |
NumberSerializers.NumberSerializer
As a fallback, we may need to use this serializer for other
types of
Number s (custom types). |
static class |
NumberSerializers.ShortSerializer |
Modifier | Constructor and Description |
---|---|
protected |
NumberSerializers() |
public static void addAll(Map<String,JsonSerializer<?>> allDeserializers)
Copyright © 2012-2013 FasterXML. All Rights Reserved.