com.fasterxml.jackson.databind.util
Class ObjectIdMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.IdentityHashMap<Object,Object>
com.fasterxml.jackson.databind.util.ObjectIdMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public class ObjectIdMap
- extends IdentityHashMap<Object,Object>
Map used during serialization, to keep track of referable Objects
along with lazily evaluated ids.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Method Summary |
Object |
findId(Object pojo)
Method that is called to figure out whether we have already
seen given POJO: if yes, we will return its id (first looking
it up as necessary); if not, we will mark down that we have
seen it but return null. |
void |
insertId(Object pojo,
Object id)
|
Methods inherited from class java.util.IdentityHashMap |
clear, clone, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
ObjectIdMap
public ObjectIdMap()
findId
public Object findId(Object pojo)
- Method that is called to figure out whether we have already
seen given POJO: if yes, we will return its id (first looking
it up as necessary); if not, we will mark down that we have
seen it but return null.
insertId
public void insertId(Object pojo,
Object id)
Copyright © 2012 FasterXML. All Rights Reserved.