|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schwering.irc.lib.IRCUser
public class IRCUser
Holds variables for the nick, username and host of a user.
It's used to pack these information in one object.
IRCEventListener
,
IRCParser
Constructor Summary | |
---|---|
IRCUser(String nick,
String username,
String host)
Creates a new IRCUser object. |
Method Summary | |
---|---|
String |
getHost()
Returns the host of the person who sent the line. |
String |
getNick()
Returns the nickname of the person who sent the line or the servername of the server which sent the line. |
String |
getServername()
Returns the servername of the server which sent the line or the nickname of the person who sent the line. |
String |
getUsername()
Returns the username of the person who sent the line. |
String |
toString()
Returns the nickname. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IRCUser(String nick, String username, String host)
IRCUser
object.
nick
- The user's nickname.username
- The user's username.host
- The user's host.Method Detail |
---|
public String getNick()
null
is returned.
getServername
!
null
is returned.getServername()
,
getUsername()
,
getHost()
public String getServername()
null
is returned.
getNick
!
null
is returned.getNick()
public String getUsername()
null
.
null
if it's not given.getNick()
,
getHost()
public String getHost()
null
.
null
if it's not given.getNick()
,
getUsername()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |