Package net.carcdr.ycrdt
Class YTextChange
java.lang.Object
net.carcdr.ycrdt.YChange
net.carcdr.ycrdt.YTextChange
Represents a change to a YText or YXmlText instance.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.carcdr.ycrdt.YChange
YChange.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the formatting attributes associated with this change.abstract StringReturns the text content for INSERT changes.abstract intReturns the length of the change.
-
Constructor Details
-
YTextChange
protected YTextChange()Protected constructor for subclasses.
-
-
Method Details
-
getContent
Returns the text content for INSERT changes.- Returns:
- the inserted text, or null for non-INSERT changes
-
getLength
public abstract int getLength()Returns the length of the change.- Returns:
- the number of characters affected
-
getAttributes
-