Diffusion Apple API  6.5.2
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
Properties | Instance Methods | List of all members
PTDiffusionJSONDeltaChangeMap Class Reference

Introduction

An immutable map describing the changes to a JSON value.

The map contains an entry for each change, as follows:

Since
6.3
Inheritance diagram for PTDiffusionJSONDeltaChangeMap:

Properties

NSDictionary< NSString
*, PTDiffusionJSON * > * 
map
 

Instance Methods

(nullable
PTDiffusionJSONDeltaChangeMap *) 
- descendantsOfPointer:error:
 
(nullable
PTDiffusionJSONDeltaChangeMap *) 
- intersectionOfPointer:error:
 

Method Documentation

- (nullable PTDiffusionJSONDeltaChangeMap *) descendantsOfPointer: (NSString *)  pointer
error: (NSError **)  error 

Returns a view of the portion of this map whose keys are descendants of pointer. If pointer is contained in this map, it will be included in the result.

Parameters
pointerJSON pointer
errorLocation to store a reason in case of failure. May be nil.
Returns
JSON delta change map containing the descendants of given pointer.
Exceptions
NSInvalidArgumentExceptionIf pointer is nil.
Since
6.3
- (nullable PTDiffusionJSONDeltaChangeMap *) intersectionOfPointer: (NSString *)  pointer
error: (NSError **)  error 

Returns a view of the portion of this map whose keys are descendants or parents of pointer. If pointer is contained in this map, it will be included in the result.

This method can be used to determine whether a structural delta affects a particular part of a JSON value.

Parameters
pointerJSON pointer
errorLocation to store a reason in case of failure. May be nil.
Returns
JSON delta change map containing the intersection of given pointer.
Exceptions
NSInvalidArgumentExceptionIf pointer is nil.
Since
6.3

Property Documentation

- (NSDictionary<NSString *, PTDiffusionJSON *>*) map
readnonatomicassign

The entries forming the change map.