Uses of Class
io.keikai.doc.collab.utils.Snapshot
Packages that use Snapshot
-
Uses of Snapshot in io.keikai.doc.collab.types
Methods in io.keikai.doc.collab.types with parameters of type SnapshotModifier and TypeMethodDescriptionYXmlElement.getAttributes(Snapshot snapshot) Returns all attribute name/value pairs in a JSON Object.YText.toDeltaList(Snapshot snapshot, Snapshot prevSnapshot, BiFunction<String, ID, Object> computeYChange) YText.toDeltaMap(Snapshot snapshot, Snapshot prevSnapshot, BiFunction<String, ID, Object> computeYChange) static voidAbstractType.typeListForEachSnapshot(AbstractType type, TriConsumer<Object, Integer, AbstractType> f, Snapshot snapshot) Executes a provided function on every element of the type, based on the provided snapshot.AbstractType.typeListToArraySnapshot(AbstractType type, Snapshot snapshot) Converts the list of elements in the type to an array based on the provided snapshot.AbstractType.typeMapGetAllSnapshot(AbstractType parent, Snapshot snapshot) Gets all key-value pairs from the type's map for a specific snapshot.static ObjectAbstractType.typeMapGetSnapshot(AbstractType parent, String key, Snapshot snapshot) Gets a value from the type's map by key for a specific snapshot. -
Uses of Snapshot in io.keikai.doc.collab.utils
Methods in io.keikai.doc.collab.utils that return SnapshotModifier and TypeMethodDescriptionstatic SnapshotSnapshot.createSnapshot(DeleteSet ds, Map<Integer, Integer> sm) Create a new snapshot.static SnapshotSnapshot.decodeSnapshot(Uint8Array buf) Decode a snapshot using DSDecoderV1.static SnapshotSnapshot.decodeSnapshot(Uint8Array buf, DSDecoder decoder) Decode a snapshot using the specified decoder.static SnapshotSnapshot.decodeSnapshotV2(Uint8Array buf) Decode a snapshot using DSDecoderV2.static SnapshotSnapshot.emptySnapshot()Create an empty snapshot.static SnapshotCreate a snapshot from a document's current state.Methods in io.keikai.doc.collab.utils with parameters of type SnapshotModifier and TypeMethodDescriptionstatic DocSnapshot.createDocFromSnapshot(Doc originDoc, Snapshot snapshot) Create a document from a snapshot.static DocSnapshot.createDocFromSnapshot(Doc originDoc, Snapshot snapshot, Doc newDoc) Create a document from a snapshot.static Uint8ArraySnapshot.encodeSnapshot(Snapshot snapshot) Encode a snapshot using DSEncoderV1.static Uint8ArraySnapshot.encodeSnapshotV2(Snapshot snapshot, io.keikai.doc.collab.utils.DSEncoder encoder) Encode a snapshot using DSEncoderV2.static booleanSnapshot.equalSnapshots(Snapshot snap1, Snapshot snap2) Compare two snapshots for equality.static booleanCheck if an item is visible within a given snapshot.static booleanSnapshot.snapshotContainsUpdate(Snapshot snapshot, Uint8Array update) Check if a snapshot contains a given update using UpdateDecoderV1.static booleanSnapshot.snapshotContainsUpdateV2(Snapshot snapshot, Uint8Array update, Class<? extends UpdateDecoder> yDecoder) Check if a snapshot contains a given update using a specific decoder.static voidSnapshot.splitSnapshotAffectedStructs(Transaction transaction, Snapshot snapshot) Split snapshot-affected structs in a transaction.