@API(status=INTERNAL) public class MatchingUserIdMentionToken extends java.lang.Object implements CommandToken
Constructor and Description |
---|
MatchingUserIdMentionToken(java.util.function.Supplier<java.lang.Long> matchingUserId) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getTokenType() |
boolean |
matches(java.lang.Object inputToken) |
public MatchingUserIdMentionToken(java.util.function.Supplier<java.lang.Long> matchingUserId)
public boolean matches(java.lang.Object inputToken)
matches
in interface CommandToken
inputToken
- the input token, can be of type String
, Mention
, Cashtag
or Hashtag
public java.lang.Class<?> getTokenType()
getTokenType
in interface CommandToken
String
, Mention
, Cashtag
or Hashtag