|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object f00f.net.irc.martyr.clientstate.Member
public class Member
This class allows channels to keep track of individual users. Each user in the channel has a nick and has voice, ops, both, or none. Note that nicks can change, but the information we have about that person does not.
Control over events that happen to this class can be obtained in a similar fashion to how control for the Channel is taken from ClientState.
Constructor Summary | |
---|---|
Member(java.lang.String nickStr)
Strips off the leading 'at' or 'plus', sets ops or voice, and keeps the nick. |
Method Summary | |
---|---|
boolean |
equals(FullNick fullNick)
|
boolean |
equals(Member member)
Does a nick-wise compare. |
boolean |
equals(java.lang.Object o)
|
FullNick |
getNick()
|
int |
hashCode()
|
boolean |
hasOps()
|
boolean |
hasVoice()
|
void |
setNick(FullNick nick)
|
void |
setOps(boolean ops)
|
void |
setVoice(boolean voice)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Member(java.lang.String nickStr)
Strips off the leading 'at' or 'plus', sets ops or voice, and
keeps the nick. Calls the methods setVoice(...)
and
setOps(...)
from the constructor, if those conditions
are true. The nick is set before setVoice or setOps are
called.
nickStr
- Nick of memberMethod Detail |
---|
public boolean equals(Member member)
member
- Member to compare against
public boolean equals(FullNick fullNick)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setOps(boolean ops)
public void setVoice(boolean voice)
public boolean hasOps()
public boolean hasVoice()
public void setNick(FullNick nick)
public FullNick getNick()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |