f00f.net.irc.martyr.clientstate
Class Member

java.lang.Object
  extended by f00f.net.irc.martyr.clientstate.Member

public class Member
extends java.lang.Object

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

Member

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.

Parameters:
nickStr - Nick of member
Method Detail

equals

public boolean equals(Member member)
Does a nick-wise compare.

Parameters:
member - Member to compare against
Returns:
True or false of this member equals the other one

equals

public boolean equals(FullNick fullNick)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setOps

public void setOps(boolean ops)

setVoice

public void setVoice(boolean voice)

hasOps

public boolean hasOps()

hasVoice

public boolean hasVoice()

setNick

public void setNick(FullNick nick)

getNick

public FullNick getNick()


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.