f00f.net.irc.martyr.modes
Class GenericMode
java.lang.Object
f00f.net.irc.martyr.modes.GenericMode
- All Implemented Interfaces:
- Mode
- Direct Known Subclasses:
- GenericChannelMode, GenericUserMode
public abstract class GenericMode
- extends java.lang.Object
- implements Mode
GenericNode uses the character to specify the hash code. Thus, two
mode types are the same, in a hash table, even if they have
different parameters or positive/negative values.
Nested classes/interfaces inherited from interface f00f.net.irc.martyr.Mode |
Mode.Sign |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GenericMode
public GenericMode()
setParam
public void setParam(java.lang.String str)
- Description copied from interface:
Mode
- Sets the parameter that can be retrieved with getParam()
- Specified by:
setParam
in interface Mode
- Parameters:
str
- Parameter to set on mode
getParam
public java.lang.String getParam()
- Description copied from interface:
Mode
- Returns the parameter that was set with setParam(...)
- Specified by:
getParam
in interface Mode
- Returns:
- Parameter that was set previously
setSign
public void setSign(Mode.Sign sign)
- Description copied from interface:
Mode
- Sets the sign of the operation. Must be positive (granting),
negative (revoking) or nosign (neutral operation).
- Specified by:
setSign
in interface Mode
- Parameters:
sign
- Sign (+/-) of the mode
getSign
public Mode.Sign getSign()
- Specified by:
getSign
in interface Mode
- Returns:
- the sign of this mode.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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
Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.