Package com.fasterxml.jackson.core.json
Class DupDetector
- java.lang.Object
-
- com.fasterxml.jackson.core.json.DupDetector
-
public class DupDetector extends java.lang.ObjectHelper class used ifJsonParser.Feature.STRICT_DUPLICATE_DETECTIONis enabled. Optimized to try to limit memory usage and processing overhead for smallest entries, but without adding trashing (immutable objects would achieve optimal memory usage but lead to significant number of discarded temp objects for scopes with large number of entries). Another consideration is trying to limit actual number of compiled classes as it contributes significantly to overall jar size (due to linkage etc).- Since:
- 2.3
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DupDetectorchild()JsonLocationfindLocation()java.lang.ObjectgetSource()booleanisDup(java.lang.String name)voidreset()static DupDetectorrootDetector(JsonGenerator g)static DupDetectorrootDetector(JsonParser p)
-
-
-
Method Detail
-
rootDetector
public static DupDetector rootDetector(JsonParser p)
-
rootDetector
public static DupDetector rootDetector(JsonGenerator g)
-
child
public DupDetector child()
-
reset
public void reset()
-
findLocation
public JsonLocation findLocation()
-
getSource
public java.lang.Object getSource()
- Since:
- 2.7
-
isDup
public boolean isDup(java.lang.String name) throws JsonParseException- Throws:
JsonParseException
-
-