String text = p.getText().trim(); if ((text.length() == 0)) { return (Float) _coerceEmptyString(ctxt, _primitive); if (_hasTextualNull(text)) { return (Float) _coerceTextualNull(ctxt, _primitive); if (_isPosInf(text)) { return Float.POSITIVE_INFINITY; if (_isNaN(text)) { return Float.NaN; if (_isNegInf(text)) { return Float.NEGATIVE_INFINITY; _verifyStringForScalarCoercion(ctxt, text); try { return Float.parseFloat(text); return (Float) _coerceNullToken(ctxt, _primitive); return _deserializeFromArray(p, ctxt);
String text = p.getText().trim(); if ((text.length() == 0)) { return (Float) _coerceEmptyString(ctxt, _primitive); if (_hasTextualNull(text)) { return (Float) _coerceTextualNull(ctxt, _primitive); if (_isPosInf(text)) { return Float.POSITIVE_INFINITY; if (_isNaN(text)) { return Float.NaN; if (_isNegInf(text)) { return Float.NEGATIVE_INFINITY; _verifyStringForScalarCoercion(ctxt, text); try { return Float.parseFloat(text); return (Float) _coerceNullToken(ctxt, _primitive); return _deserializeFromArray(p, ctxt);
new IntegerDeserializer(Integer.class, null), new LongDeserializer(Long.class, null), new FloatDeserializer(Float.class, null), new DoubleDeserializer(Double.class, null), new IntegerDeserializer(Integer.TYPE, Integer.valueOf(0)), new LongDeserializer(Long.TYPE, Long.valueOf(0L)), new FloatDeserializer(Float.TYPE, Float.valueOf(0.0f)), new DoubleDeserializer(Double.TYPE, Double.valueOf(0.0)),
new IntegerDeserializer(Integer.class, null), new LongDeserializer(Long.class, null), new FloatDeserializer(Float.class, null), new DoubleDeserializer(Double.class, null), new IntegerDeserializer(Integer.TYPE, Integer.valueOf(0)), new LongDeserializer(Long.TYPE, Long.valueOf(0L)), new FloatDeserializer(Float.TYPE, Float.valueOf(0.0f)), new DoubleDeserializer(Double.TYPE, Double.valueOf(0.0)),
@Override public Float deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return _parseFloat(p, ctxt); } }
@Override public Float deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { /* 22-Jan-2009, tatu: Bounds/range checks would be tricky * here, so let's not bother even trying... */ return _parseFloat(jp, ctxt); } }
@Override public Float deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { /* 22-Jan-2009, tatu: Bounds/range checks would be tricky * here, so let's not bother even trying... */ return _parseFloat(jp, ctxt); } }
@Override public Float deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { /* 22-Jan-2009, tatu: Bounds/range checks would be tricky * here, so let's not bother even trying... */ return _parseFloat(jp, ctxt); } }
@Override public Float deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { /* 22-Jan-2009, tatu: Bounds/range checks would be tricky * here, so let's not bother even trying... */ return _parseFloat(jp, ctxt); } }
@Override public Float deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return _parseFloat(p, ctxt); }
@Override public Float deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return _parseFloat(p, ctxt); }