rero.ircfw

Class User

public class User extends Object implements Comparable, FrameworkConstants

Field Summary
protected Stringaddress
protected HashMapchannels
protected longidle
protected Stringnickname
Constructor Summary
User(String nick)
Method Summary
intcompareTo(Object b)
StringgetAddress()
HashMapgetChannelData()
returned HashMap -> key= value= can be used to determine users mode on a channel
SetgetChannels()
StringgetFullAddress()
intgetIdleTime()
returns user idle time in seconds
intgetModeFor(Channel ch)
StringgetNick()
booleanisIdle()
voidsetAddress(String a)
voidsetModeFor(Channel ch, int modes)
voidsetNick(String n)
StringtoString()
voidtouch()

Field Detail

address

protected String address

channels

protected HashMap channels

idle

protected long idle

nickname

protected String nickname

Constructor Detail

User

public User(String nick)

Method Detail

compareTo

public int compareTo(Object b)

getAddress

public String getAddress()

getChannelData

public HashMap getChannelData()
returned HashMap -> key= value= can be used to determine users mode on a channel

getChannels

public Set getChannels()

getFullAddress

public String getFullAddress()

getIdleTime

public int getIdleTime()
returns user idle time in seconds

getModeFor

public int getModeFor(Channel ch)

getNick

public String getNick()

isIdle

public boolean isIdle()

setAddress

public void setAddress(String a)

setModeFor

public void setModeFor(Channel ch, int modes)

setNick

public void setNick(String n)

toString

public String toString()

touch

public void touch()