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 Annotations Source Code
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".
Jackson Annotations Source Code files are provided in the source packge (jackson-annotations-2.14.0-sources.jar). You can download it at Jackson Maven Website.
You can also browse Jackson Annotations Source Code below:
✍: FYIcenter.com
⏎ com/fasterxml/jackson/annotation/SimpleObjectIdResolver.java
package com.fasterxml.jackson.annotation;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey;
/**
* Simple implementation of {@link ObjectIdResolver}
*
* @author Pascal Gélinas
*/
public class SimpleObjectIdResolver implements ObjectIdResolver {
protected Map<IdKey,Object> _items;
public SimpleObjectIdResolver() { }
@Override
public void bindItem(IdKey id, Object ob)
{
if (_items == null) {
_items = new HashMap<ObjectIdGenerator.IdKey,Object>();
} else {
Object old = _items.get(id);
if (old != null) {
// 11-Nov-2020, tatu: As per [annotations#180] allow duplicate calls:
if (old == ob) {
return;
}
throw new IllegalStateException("Already had POJO for id (" + id.key.getClass().getName() + ") [" + id
+ "]");
}
}
_items.put(id, ob);
}
@Override
public Object resolveId(IdKey id) {
return (_items == null) ? null : _items.get(id);
}
@Override
public boolean canUseFor(ObjectIdResolver resolverType) {
return resolverType.getClass() == getClass();
}
@Override
public ObjectIdResolver newForDeserialization(Object context) {
// 19-Dec-2014, tatu: Important: must re-create without existing mapping; otherwise bindings leak
// (and worse, cause unnecessary memory retention)
return new SimpleObjectIdResolver();
}
}
⏎ com/fasterxml/jackson/annotation/SimpleObjectIdResolver.java
Or download all of them as a single archive file:
File name: jackson-annotations-2.14.0-sources.jar File size: 80402 bytes Release date: 2022-11-05 Download
⇒ Jackson Dataformat Extensions
⇐ Jackson Data Binding Source Code
2022-02-19, ≈111🔥, 0💬
Popular Posts:
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...
What Is poi-5.2.3.jar? poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...