Package net.sf.json.util
Class CycleDetectionStrategy.LenientCycleDetectionStrategy
- java.lang.Object
-
- net.sf.json.util.CycleDetectionStrategy
-
- net.sf.json.util.CycleDetectionStrategy.LenientCycleDetectionStrategy
-
- Enclosing class:
- CycleDetectionStrategy
private static final class CycleDetectionStrategy.LenientCycleDetectionStrategy extends CycleDetectionStrategy
-
-
Field Summary
-
Fields inherited from class net.sf.json.util.CycleDetectionStrategy
IGNORE_PROPERTY_ARR, IGNORE_PROPERTY_OBJ, LENIENT, NOPROP, STRICT
-
-
Constructor Summary
Constructors Modifier Constructor Description privateLenientCycleDetectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONArrayhandleRepeatedReferenceAsArray(java.lang.Object reference)Handle a repeated reference
Must return a valid JSONArray or null.JSONObjecthandleRepeatedReferenceAsObject(java.lang.Object reference)Handle a repeated reference
Must return a valid JSONObject or null.
-
-
-
Method Detail
-
handleRepeatedReferenceAsArray
public JSONArray handleRepeatedReferenceAsArray(java.lang.Object reference)
Description copied from class:CycleDetectionStrategyHandle a repeated reference
Must return a valid JSONArray or null.- Specified by:
handleRepeatedReferenceAsArrayin classCycleDetectionStrategy- Parameters:
reference- the repeated reference.
-
handleRepeatedReferenceAsObject
public JSONObject handleRepeatedReferenceAsObject(java.lang.Object reference)
Description copied from class:CycleDetectionStrategyHandle a repeated reference
Must return a valid JSONObject or null.- Specified by:
handleRepeatedReferenceAsObjectin classCycleDetectionStrategy- Parameters:
reference- the repeated reference.
-
-