Class JniYTextChange

java.lang.Object
net.carcdr.ycrdt.YChange
net.carcdr.ycrdt.YTextChange
net.carcdr.ycrdt.jni.JniYTextChange

public final class JniYTextChange extends net.carcdr.ycrdt.YTextChange
Represents a change to a YText or YXmlText object.

Text changes are expressed as deltas with three operations:

  • INSERT: Text was inserted at this position
  • DELETE: Text was deleted from this position
  • RETAIN: Position skipped (no change), used for context

Example delta sequence for changing "Hello" to "Hello World":

 RETAIN(5)           // Skip first 5 chars ("Hello")
 INSERT(" World")    // Insert " World"
 
See Also: