public JsonReadContext(com.fasterxml.jackson.core.json.JsonReadContext parent, com.fasterxml.jackson.core.json.DupDetector dups, int type, int lineNr, int colNr) : base() { // // // Configuration // // // Optional duplicate detection /* /********************************************************** /* Simple instance reuse slots; speeds up things /* a bit (10-15%) for docs with lots of small /* arrays/objects (for which allocation was /* visible in profile stack frames) /********************************************************** */ /* /********************************************************** /* Location/state information (minus source reference) /********************************************************** */ /* /********************************************************** /* Instance construction, config, reuse /********************************************************** */ _parent = parent; _dups = dups; _type = type; _lineNr = lineNr; _columnNr = colNr; _index = -1; }
protected internal JsonWriteContext(int type, com.fasterxml.jackson.core.json.JsonWriteContext parent, com.fasterxml.jackson.core.json.DupDetector dups) : base() { // // // Return values for writeValue() // in root context // // // Optional duplicate detection /* /********************************************************** /* Simple instance reuse slots; speed up things /* a bit (10-15%) for docs with lots of small /* arrays/objects /********************************************************** */ /* /********************************************************** /* Location/state information (minus source reference) /********************************************************** */ /* /********************************************************** /* Life-cycle /********************************************************** */ _type = type; _parent = parent; _dups = dups; _index = -1; }
/* public void trackDups(JsonParser jp) { _dups = DupDetector.rootDetector(jp); } */ public com.fasterxml.jackson.core.json.JsonReadContext withDupDetector(com.fasterxml.jackson.core.json.DupDetector dups) { _dups = dups; return this; }
public virtual com.fasterxml.jackson.core.json.JsonWriteContext withDupDetector(com.fasterxml.jackson.core.json.DupDetector dups) { _dups = dups; return this; }