jerklib.events.impl
Class NickInUseEventImpl

java.lang.Object
  extended by jerklib.events.impl.NickInUseEventImpl
All Implemented Interfaces:
IRCEvent, NickInUseEvent

public class NickInUseEventImpl
extends Object
implements NickInUseEvent

Author:
mohadib
See Also:
NickInUseEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
NickInUseEventImpl(String inUseNick, String rawEventData, Session session)
           
 
Method Summary
 String getInUseNick()
          returns nick that was in use
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NickInUseEventImpl

public NickInUseEventImpl(String inUseNick,
                          String rawEventData,
                          Session session)
Method Detail

getInUseNick

public String getInUseNick()
Description copied from interface: NickInUseEvent
returns nick that was in use

Specified by:
getInUseNick in interface NickInUseEvent
Returns:
nick that was in use.

getRawEventData

public 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 Session getSession()
Description copied from interface: IRCEvent
Gets session for connection

Specified by:
getSession in interface IRCEvent
Returns:
Session

getType

public 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