DocumentRequirements class
The formats a document's data is written in, by handler kind.
Read one with CRDTDocument.describeDataRequirements, and compare it with a DocumentCapabilities to find the kinds a peer cannot read.
A document can require more than it reads: a change written by a peer that knows more is stored and forwarded whole, and reading that handler then throws UnknownOperationKindException.
Constructors
-
DocumentRequirements(Map<
String, HandlerFormats> byHandlerType) -
Creates requirements from
byHandlerType.
Properties
-
byHandlerType
→ Map<
String, HandlerFormats> -
The formats, keyed by Handler.handlerType.
finalinherited
-
handlerTypes
→ Iterable<
String> -
The handler types this covers.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether this says nothing at all.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
merge(
DocumentRequirements other) → DocumentRequirements - Every kind either side names, with the formats of both. Only adds.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
Equal when both sides are the same subclass and hold the same map.
inherited
-
operator [](
String handlerType) → HandlerFormats? -
The formats for
handlerType, ornullwhen this says nothing about it.inherited