public class IRCUser
extends java.lang.Object
It's used to pack these information in one object.
IRCEventListener
,
IRCParser
Constructor and Description |
---|
IRCUser(java.lang.String nick,
java.lang.String username,
java.lang.String host)
Creates a new
IRCUser object. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost()
Returns the host of the person who sent the line.
|
java.lang.String |
getNick()
Returns the nickname of the person who sent the line
or the servername of the server which sent the line.
|
java.lang.String |
getServername()
Returns the servername of the server which sent the line or the nickname of
the person who sent the line.
|
java.lang.String |
getUsername()
Returns the username of the person who sent the line.
|
java.lang.String |
toString()
Returns the nickname.
|
public IRCUser(java.lang.String nick, java.lang.String username, java.lang.String host)
IRCUser
object.nick
- The user's nickname.username
- The user's username.host
- The user's host.public java.lang.String getNick()
null
is returned.
getServername
!null
is returned.getServername()
,
getUsername()
,
getHost()
public java.lang.String getServername()
null
is returned.
getNick
!null
is returned.getNick()
public java.lang.String getUsername()
null
.public java.lang.String getHost()
null
.null
if it's not given.getNick()
,
getUsername()
public java.lang.String toString()
toString
in class java.lang.Object