Package net.carcdr.ycrdt.jni
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:
-
Method Details
-
getType
public net.carcdr.ycrdt.YChange.Type getType()- Specified by:
getTypein classnet.carcdr.ycrdt.YChange
-
getContent
- Specified by:
getContentin classnet.carcdr.ycrdt.YTextChange
-
getLength
public int getLength()- Specified by:
getLengthin classnet.carcdr.ycrdt.YTextChange
-
getAttributes
-
toString
-