Package com.jsoniter

Class MapKeyDecoders.NumberKeyDecoder

java.lang.Object
com.jsoniter.MapKeyDecoders.NumberKeyDecoder
All Implemented Interfaces:
Decoder
Enclosing class:
MapKeyDecoders

private static class MapKeyDecoders.NumberKeyDecoder extends Object implements Decoder
  • Field Details

    • decoder

      private final Decoder decoder
  • Constructor Details

    • NumberKeyDecoder

      private NumberKeyDecoder(Decoder decoder)
  • Method Details

    • decode

      public Object decode(JsonIterator iter) throws IOException
      Description copied from interface: Decoder
      Customized decoder to read values from iterator
      Specified by:
      decode in interface Decoder
      Parameters:
      iter - the iterator instance
      Returns:
      the value to set
      Throws:
      IOException - when reading from iterator triggered error