Class CycleDetectionStrategy

    • Field Detail

      • IGNORE_PROPERTY_ARR

        public static final JSONArray IGNORE_PROPERTY_ARR
      • IGNORE_PROPERTY_OBJ

        public static final JSONObject IGNORE_PROPERTY_OBJ
      • NOPROP

        public static final CycleDetectionStrategy NOPROP
        Returns a special object (IGNORE_PROPERTY_OBJ) that indicates the entire property should be ignored
    • Constructor Detail

      • CycleDetectionStrategy

        public CycleDetectionStrategy()
    • Method Detail

      • handleRepeatedReferenceAsArray

        public abstract JSONArray handleRepeatedReferenceAsArray​(java.lang.Object reference)
        Handle a repeated reference
        Must return a valid JSONArray or null.
        Parameters:
        reference - the repeated reference.
      • handleRepeatedReferenceAsObject

        public abstract JSONObject handleRepeatedReferenceAsObject​(java.lang.Object reference)
        Handle a repeated reference
        Must return a valid JSONObject or null.
        Parameters:
        reference - the repeated reference.