jerklib.events.impl
Class NickChangeEventImpl

java.lang.Object
  extended by jerklib.events.impl.NickChangeEventImpl
All Implemented Interfaces:
IRCEvent, NickChangeEvent

public class NickChangeEventImpl
extends Object
implements NickChangeEvent

Author:
mohadib
See Also:
NickChangeEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
NickChangeEventImpl(String rawEventData, Session session, String oldNick, String newNick, String hostName, String userName)
           
 
Method Summary
 String getHostName()
          Get the hostname of the user who changed their nick
 String getNewNick()
          getNewNick() returns the new nick of the user
 String getOldNick()
          Returns the previous nick of the user before the change
 String getRawEventData()
          Returns the raw IRC data that makes up this event
 Session getSession()
          Gets session for connection
 IRCEvent.Type getType()
          Used to find out the exact type of event the IRCEvent object is.
 String getUserName()
          Get the username of the user who changed their nick
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NickChangeEventImpl

public NickChangeEventImpl(String rawEventData,
                           Session session,
                           String oldNick,
                           String newNick,
                           String hostName,
                           String userName)
Method Detail

getOldNick

public final String getOldNick()
Description copied from interface: NickChangeEvent
Returns the previous nick of the user before the change

Specified by:
getOldNick in interface NickChangeEvent
Returns:
Old nick for user.

getNewNick

public final String getNewNick()
Description copied from interface: NickChangeEvent
getNewNick() returns the new nick of the user

Specified by:
getNewNick in interface NickChangeEvent
Returns:
New nick for user

getType

public final IRCEvent.Type getType()
Description copied from interface: IRCEvent
Used to find out the exact type of event the IRCEvent object is. The IRCEvent object can be cast into a more specific event object to get access to convience methods for the specific event types.

Specified by:
getType in interface IRCEvent
Returns:
Type of event

getRawEventData

public final String getRawEventData()
Description copied from interface: IRCEvent
Returns the raw IRC data that makes up this event

Specified by:
getRawEventData in interface IRCEvent
Returns:
Raw IRC event text.

getSession

public final Session getSession()
Description copied from interface: IRCEvent
Gets session for connection

Specified by:
getSession in interface IRCEvent
Returns:
Session

getHostName

public String getHostName()
Description copied from interface: NickChangeEvent
Get the hostname of the user who changed their nick

Specified by:
getHostName in interface NickChangeEvent
Returns:
hostname

getUserName

public String getUserName()
Description copied from interface: NickChangeEvent
Get the username of the user who changed their nick

Specified by:
getUserName in interface NickChangeEvent
Returns:
username

toString

public String toString()
Overrides:
toString in class Object