Mention

data class Mention(val userId: BackupQualifiedId, val start: Int, val length: Int)

Represents a mention of a user in a text.

Throws

IllegalArgumentException

if length is not positive or start is negative.

Constructors

Link copied to clipboard
constructor(userId: BackupQualifiedId, start: Int, length: Int)

Properties

Link copied to clipboard
val length: Int

The length of the mention. Must be a positive value.

Link copied to clipboard
val start: Int

The starting position of the mention in the text. Must be non-negative.

Link copied to clipboard

The identifier of the user being mentioned.