public class User
extends java.lang.Object
Note that this class no longer implements the Comparable interface for Java 1.1 compatibility reasons.
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Returns the result of calling the compareTo method on lowercased
nicks.
|
boolean |
equals(java.lang.Object o)
Returns true if the nick represented by this User object is the same
as the nick of the User object given as an argument.
|
boolean |
equals(java.lang.String nick)
Returns true if the nick represented by this User object is the same
as the argument.
|
java.lang.String |
getNick()
Returns the nick of the user.
|
java.lang.String |
getPrefix()
Returns the prefix of the user.
|
int |
hashCode()
Returns the hash code of this User object.
|
boolean |
hasVoice()
Returns whether or not the user represented by this object has
voice.
|
boolean |
isOp()
Returns whether or not the user represented by this object is an
operator.
|
java.lang.String |
toString()
Returns the nick of the user complete with their prefix if they
have one, e.g.
|
public java.lang.String getPrefix()
public boolean isOp()
public boolean hasVoice()
public java.lang.String getNick()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.String nick)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object o)
PircBot Java IRC Bot.