MergableObjectWithState <P>
Index
Constructors
publicconstructor
Type parameters
- P
Parameters
local: P
local object.
_state: MergableObjectState
_conflictReason: MergableObjectConflict
optionalremote: P
Remote object (if there is one)
Returns MergableObjectWithState<P>
Properties
publiclocal
local object.
publiconStateChange
Type declaration
Parameters
p: MergableObjectWithState<P>
Returns void
publicoptionalremote
Remote object (if there is one)
Accessors
publicconflictReason
If defined then there is a conflict between the local and the remote object.
Returns MergableObjectConflict
Sets conflict reason (if any).
Parameters
Returns void
publichasConflict
true
if a conflict exists. Otherwisefalse
Returns boolean
publicstate
get current state of the local object.
Returns MergableObjectState
set current state of the local object.
Parameters
Returns void
Describes the relation between a local object and its remote counterpart. Also gives the state for the local object and (if exists) a conflict reason between the local and the remote object. A conflict typically arises when the local object has been modified and so has the remote object. Example: local object was modified but remote object was deleted. This conflict cannot be resolved automatically.