Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Jackson Data Binding Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Databind Source Code files are provided in the source packge (jackson-databind-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Databind Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer.java
package com.fasterxml.jackson.databind.deser.std;
import java.util.concurrent.atomic.AtomicReference;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.deser.ValueInstantiator;
import com.fasterxml.jackson.databind.jsontype.TypeDeserializer;
public class AtomicReferenceDeserializer
extends ReferenceTypeDeserializer<AtomicReference<Object>>
{
private static final long serialVersionUID = 1L;
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
/**
* @since 2.9
*/
public AtomicReferenceDeserializer(JavaType fullType, ValueInstantiator inst,
TypeDeserializer typeDeser, JsonDeserializer<?> deser)
{
super(fullType, inst, typeDeser, deser);
}
/*
/**********************************************************
/* Abstract method implementations
/**********************************************************
*/
@Override
public AtomicReferenceDeserializer withResolved(TypeDeserializer typeDeser, JsonDeserializer<?> valueDeser) {
return new AtomicReferenceDeserializer(_fullType, _valueInstantiator,
typeDeser, valueDeser);
}
@Override
public AtomicReference<Object> getNullValue(DeserializationContext ctxt) throws JsonMappingException {
// 07-May-2019, tatu: [databind#2303], needed for nested ReferenceTypes
return new AtomicReference<Object>(_valueDeserializer.getNullValue(ctxt));
}
@Override
public Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingException {
// 07-May-2019, tatu: I _think_ this needs to align with "null value" and
// not necessarily with empty value of contents? (used to just do "absent"
// so either way this seems to me like an improvement)
return getNullValue(ctxt);
}
/**
* Let's actually NOT coerce missing Creator parameters into empty value.
*/
@Override // @since 2.13
public Object getAbsentValue(DeserializationContext ctxt) throws JsonMappingException {
return null;
}
@Override
public AtomicReference<Object> referenceValue(Object contents) {
return new AtomicReference<Object>(contents);
}
@Override
public Object getReferenced(AtomicReference<Object> reference) {
return reference.get();
}
@Override // since 2.9
public AtomicReference<Object> updateReference(AtomicReference<Object> reference, Object contents) {
reference.set(contents);
return reference;
}
@Override // since 2.9
public Boolean supportsUpdate(DeserializationConfig config) {
// yes; regardless of value deserializer reference itself may be updated
return Boolean.TRUE;
}
}
⏎ com/fasterxml/jackson/databind/deser/std/AtomicReferenceDeserializer.java
Or download all of them as a single archive file:
File name: jackson-databind-2.14.0-sources.jar File size: 1187952 bytes Release date: 2022-11-05 Download
⇒ Jackson Annotations Source Code
⇐ Download and Install Jackson Binary Package
2022-03-29, ≈297🔥, 0💬
Popular Posts:
HttpComponents Core Source Code Files are provided in the source package file, httpcomponents-core-5...
JDK 17 jdk.incubator.foreign.jm odis the JMOD file for JDK 17 HTTP Server module. JDK 17 Incubator F...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....
JDK 11 jdk.security.auth.jmod is the JMOD file for JDK 11 Security Auth module. JDK 11 Security Auth...