Class WeatherResponse.WeatherArrayDeserializer

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<WeatherResponse.WeatherInfo>
com.github.trelawnm.weathersdk.model.WeatherResponse.WeatherArrayDeserializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
Enclosing class:
WeatherResponse

public static class WeatherResponse.WeatherArrayDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<WeatherResponse.WeatherInfo>
Custom deserializer for weather array to object conversion
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)
    Deserializes weather array taking first element

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WeatherArrayDeserializer

      public WeatherArrayDeserializer()
  • Method Details

    • deserialize

      public WeatherResponse.WeatherInfo deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
      Deserializes weather array taking first element
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<WeatherResponse.WeatherInfo>
      Returns:
      first WeatherInfo from array or null
      Throws:
      IOException