{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

DeleteSurroundingTextInCodePointsCommand

public final class DeleteSurroundingTextInCodePointsCommand implements EditCommand


A variant of DeleteSurroundingTextCommand. The difference is that

See deleteSurroundingTextInCodePoints.

Summary

Public constructors

DeleteSurroundingTextInCodePointsCommand(
    int lengthBeforeCursor,
    int lengthAfterCursor
)

Public methods

void

Apply the command on the editing buffer.

boolean
equals(Object other)
final int

The number of characters in Unicode code points after the cursor to be deleted.

final int

The number of characters in Unicode code points before the cursor to be deleted.

int
@NonNull String

Public constructors

DeleteSurroundingTextInCodePointsCommand

public DeleteSurroundingTextInCodePointsCommand(
    int lengthBeforeCursor,
    int lengthAfterCursor
)
Parameters
int lengthBeforeCursor

The number of characters in Unicode code points before the cursor to be deleted. Must be non-negative.

int lengthAfterCursor

The number of characters in Unicode code points after the cursor to be deleted. Must be non-negative.

Public methods

applyTo

public void applyTo(@NonNull EditingBuffer buffer)

Apply the command on the editing buffer.

equals

public boolean equals(Object other)

getLengthAfterCursor

public final int getLengthAfterCursor()

The number of characters in Unicode code points after the cursor to be deleted. Must be non-negative.

getLengthBeforeCursor

public final int getLengthBeforeCursor()

The number of characters in Unicode code points before the cursor to be deleted. Must be non-negative.

hashCode

public int hashCode()

toString

public @NonNull String toString()