Package org.kordamp.json.util
Class CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy
java.lang.Object
org.kordamp.json.util.CycleDetectionStrategy
org.kordamp.json.util.CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy
- Enclosing class:
CycleDetectionStrategy
private static final class CycleDetectionStrategy.LenientNoRefCycleDetectionStrategy
extends CycleDetectionStrategy
A cycle detection strategy that prevents any mention of the possible
conflict from appearing.
-
Field Summary
Fields inherited from class org.kordamp.json.util.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
-
LenientNoRefCycleDetectionStrategy
private LenientNoRefCycleDetectionStrategy()
-
-
Method Details
-
handleRepeatedReferenceAsArray
Description copied from class:CycleDetectionStrategy
Handle a repeated reference
Must return a valid JSONArray or null.- Specified by:
handleRepeatedReferenceAsArray
in classCycleDetectionStrategy
- Parameters:
reference
- the repeated reference.
-
handleRepeatedReferenceAsObject
Description copied from class:CycleDetectionStrategy
Handle a repeated reference
Must return a valid JSONObject or null.- Specified by:
handleRepeatedReferenceAsObject
in classCycleDetectionStrategy
- Parameters:
reference
- the repeated reference.
-