public abstract class NumberConverter extends Object
| Constructor and Description |
|---|
NumberConverter() |
public static final short[] SHORT_EMPTY_ARRAY
public static final int[] INT_EMPTY_ARRAY
public static final long[] LONG_EMPTY_ARRAY
public static final float[] FLOAT_EMPTY_ARRAY
public static final double[] DOUBLE_EMPTY_ARRAY
public static final Short SHORT_ZERO
public static final Integer INT_ZERO
public static final Long LONG_ZERO
public static final Float FLOAT_ZERO
public static final Double DOUBLE_ZERO
public static final JsonReader.ReadObject<Double> DOUBLE_READER
public static final JsonReader.ReadObject<Double> NULLABLE_DOUBLE_READER
public static final JsonWriter.WriteObject<Double> DOUBLE_WRITER
public static final JsonReader.ReadObject<double[]> DOUBLE_ARRAY_READER
public static final JsonWriter.WriteObject<double[]> DOUBLE_ARRAY_WRITER
public static final JsonReader.ReadObject<Float> FLOAT_READER
public static final JsonReader.ReadObject<Float> NULLABLE_FLOAT_READER
public static final JsonWriter.WriteObject<Float> FLOAT_WRITER
public static final JsonReader.ReadObject<float[]> FLOAT_ARRAY_READER
public static final JsonWriter.WriteObject<float[]> FLOAT_ARRAY_WRITER
public static final JsonReader.ReadObject<Integer> INT_READER
public static final JsonReader.ReadObject<Integer> NULLABLE_INT_READER
public static final JsonWriter.WriteObject<Integer> INT_WRITER
public static final JsonReader.ReadObject<int[]> INT_ARRAY_READER
public static final JsonWriter.WriteObject<int[]> INT_ARRAY_WRITER
public static final JsonReader.ReadObject<Short> SHORT_READER
public static final JsonReader.ReadObject<Short> NULLABLE_SHORT_READER
public static final JsonWriter.WriteObject<Short> SHORT_WRITER
public static final JsonReader.ReadObject<short[]> SHORT_ARRAY_READER
public static final JsonWriter.WriteObject<short[]> SHORT_ARRAY_WRITER
public static final JsonReader.ReadObject<Long> LONG_READER
public static final JsonReader.ReadObject<Long> NULLABLE_LONG_READER
public static final JsonWriter.WriteObject<Long> LONG_WRITER
public static final JsonReader.ReadObject<long[]> LONG_ARRAY_READER
public static final JsonWriter.WriteObject<long[]> LONG_ARRAY_WRITER
public static final JsonReader.ReadObject<BigDecimal> DECIMAL_READER
public static final JsonWriter.WriteObject<BigDecimal> DECIMAL_WRITER
public static void serializeNullable(@Nullable Double value, JsonWriter sw)
public static void serialize(double value,
JsonWriter sw)
public static void serialize(@Nullable double[] value, JsonWriter sw)
public static double deserializeDouble(JsonReader reader) throws IOException
IOExceptionpublic static ArrayList<Double> deserializeDoubleCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeDoubleCollection(JsonReader reader, Collection<Double> res) throws IOException
IOExceptionpublic static ArrayList<Double> deserializeDoubleNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeDoubleNullableCollection(JsonReader reader, Collection<Double> res) throws IOException
IOExceptionpublic static void serializeNullable(@Nullable Float value, JsonWriter sw)
public static void serialize(float value,
JsonWriter sw)
public static void serialize(@Nullable float[] value, JsonWriter sw)
public static float deserializeFloat(JsonReader reader) throws IOException
IOExceptionpublic static ArrayList<Float> deserializeFloatCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeFloatCollection(JsonReader reader, Collection<Float> res) throws IOException
IOExceptionpublic static ArrayList<Float> deserializeFloatNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeFloatNullableCollection(JsonReader reader, Collection<Float> res) throws IOException
IOExceptionpublic static void serializeNullable(@Nullable Integer value, JsonWriter sw)
public static void serialize(int value,
JsonWriter sw)
public static void serialize(@Nullable int[] values, JsonWriter sw)
public static void serialize(@Nullable short[] value, JsonWriter sw)
public static short deserializeShort(JsonReader reader) throws IOException
IOExceptionpublic static int deserializeInt(JsonReader reader) throws IOException
IOExceptionpublic static ArrayList<Integer> deserializeIntCollection(JsonReader reader) throws IOException
IOExceptionpublic static int[] deserializeIntArray(JsonReader reader) throws IOException
IOExceptionpublic static short[] deserializeShortArray(JsonReader reader) throws IOException
IOExceptionpublic static long[] deserializeLongArray(JsonReader reader) throws IOException
IOExceptionpublic static float[] deserializeFloatArray(JsonReader reader) throws IOException
IOExceptionpublic static double[] deserializeDoubleArray(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeShortCollection(JsonReader reader, Collection<Short> res) throws IOException
IOExceptionpublic static ArrayList<Short> deserializeShortNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeShortNullableCollection(JsonReader reader, Collection<Short> res) throws IOException
IOExceptionpublic static void deserializeIntCollection(JsonReader reader, Collection<Integer> res) throws IOException
IOExceptionpublic static ArrayList<Integer> deserializeIntNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeIntNullableCollection(JsonReader reader, Collection<Integer> res) throws IOException
IOExceptionpublic static void serializeNullable(@Nullable Long value, JsonWriter sw)
public static void serialize(long value,
JsonWriter sw)
public static void serialize(@Nullable long[] values, JsonWriter sw)
public static long deserializeLong(JsonReader reader) throws IOException
IOExceptionpublic static ArrayList<Long> deserializeLongCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeLongCollection(JsonReader reader, Collection<Long> res) throws IOException
IOExceptionpublic static ArrayList<Long> deserializeLongNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeLongNullableCollection(JsonReader reader, Collection<Long> res) throws IOException
IOExceptionpublic static void serializeNullable(@Nullable BigDecimal value, JsonWriter sw)
public static void serialize(BigDecimal value, JsonWriter sw)
public static BigDecimal deserializeDecimal(JsonReader reader) throws IOException
IOExceptionpublic static void serialize(@Nullable BigInteger value, JsonWriter sw)
public static BigInteger deserializeBigInteger(JsonReader reader) throws IOException
IOExceptionpublic static Number deserializeNumber(JsonReader reader) throws IOException
IOExceptionpublic static ArrayList<BigDecimal> deserializeDecimalCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeDecimalCollection(JsonReader reader, Collection<BigDecimal> res) throws IOException
IOExceptionpublic static ArrayList<BigDecimal> deserializeDecimalNullableCollection(JsonReader reader) throws IOException
IOExceptionpublic static void deserializeDecimalNullableCollection(JsonReader reader, Collection<BigDecimal> res) throws IOException
IOExceptionCopyright © 2023. All rights reserved.