Class CycleDetectionStrategy.StrictCycleDetectionStrategy
java.lang.Object
net.sf.json.util.CycleDetectionStrategy
net.sf.json.util.CycleDetectionStrategy.StrictCycleDetectionStrategy
- Enclosing class:
CycleDetectionStrategy
private static final class CycleDetectionStrategy.StrictCycleDetectionStrategy
extends CycleDetectionStrategy
-
Field Summary
Fields inherited from class CycleDetectionStrategy
IGNORE_PROPERTY_ARR, IGNORE_PROPERTY_OBJ, LENIENT, NOPROP, STRICT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRepeatedReferenceAsArray(Object reference) Handle a repeated reference
Must return a valid JSONArray or null.handleRepeatedReferenceAsObject(Object reference) Handle a repeated reference
Must return a valid JSONObject or null.
-
Constructor Details
-
StrictCycleDetectionStrategy
private StrictCycleDetectionStrategy()
-
-
Method Details
-
handleRepeatedReferenceAsArray
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
Description copied from class:CycleDetectionStrategyHandle a repeated reference
Must return a valid JSONObject or null.- Specified by:
handleRepeatedReferenceAsObjectin classCycleDetectionStrategy- Parameters:
reference- the repeated reference.
-