public class UserHostmask extends Object implements Comparable<User>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(User other)
Compare
getNick() with String.compareToIgnoreCase(java.lang.String) . |
boolean |
equals(Object o) |
<T extends PircBotX> |
getBot() |
String |
getExtbanPrefix()
Extban prefix if in format extban:nick or extban:nick!login@hostmask
|
String |
getHostmask()
The full hostmask of the user in extban:user!login@hostname format.
|
String |
getHostname()
Hostname of the user (nick!login@hostname).
|
String |
getIdent()
Alias of
getLogin() |
String |
getLogin()
Login of the user (nick!login@hostname).
|
String |
getNick()
Current nick of the user (nick!login@hostname).
|
int |
hashCode() |
OutputUser |
send()
Send a line to the user.
|
String |
toString() |
@NonNull public String getHostmask()
public String getIdent()
getLogin()
public OutputUser send()
OutputUser
for this userpublic int compareTo(User other)
getNick()
with String.compareToIgnoreCase(java.lang.String)
. This is useful for sorting lists of User objects.compareTo
in interface Comparable<User>
other
- Other user to compare topublic <T extends PircBotX> T getBot()
@Generated(value="lombok") public String getExtbanPrefix()
@Generated(value="lombok") public String getNick()
@Generated(value="lombok") public String getLogin()
@Generated(value="lombok") public String getHostname()
Copyright © 2010–2020 Leon Blakey. All rights reserved.