Interface UserMentionScanner.UserMention

Enclosing interface:
UserMentionScanner

public static interface UserMentionScanner.UserMention
Represents the location and content of a user mention in the text.
  • Method Details

    • getEnd

      int getEnd()
      Returns:
      the end position of the user mention in the text
    • getFullMention

      @Nonnull String getFullMention()
      Returns:
      the full mention string, including any meta or escape characters
    • getFullUnescapedMention

      @Nonnull String getFullUnescapedMention()
      Returns:
      the full mention string, including any meta characters, but not including escape characters
    • getUsername

      @Nonnull String getUsername()
      Returns:
      the user name of the mention string, not including any escape characters
    • getStart

      int getStart()
      Returns:
      the start position of the user mention in the text