Class MyNumberConverter


  • public abstract class MyNumberConverter
    extends Object
    dsl-json number deserializers accept numbers wrapped in strings, which is not a desirable behaviour from my point of view. That's why this class was created, to overwrite that behaviour.
    • Constructor Detail

      • MyNumberConverter

        public MyNumberConverter()
    • Method Detail

      • parseInt

        public static int parseInt​(com.dslplatform.json.JsonReader<?> reader)
                            throws com.dslplatform.json.ParsingException
        Throws:
        com.dslplatform.json.ParsingException
      • parseLong

        public static long parseLong​(com.dslplatform.json.JsonReader<?> reader)
                              throws IOException
        Throws:
        IOException