|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.zerjio.JIRC.Utils
A general utilities class. All its methods should be static.
Constructor Summary | |
Utils()
|
Method Summary | |
static boolean |
areChannelsEquivalent(java.lang.String channelName1,
java.lang.String channelName2)
Tests if two channel names are equivalent. |
static boolean |
areNicksEquivalent(java.lang.String nick1,
java.lang.String nick2)
Tests if two nicks are equivalent. |
static int |
countChar(char character,
java.lang.String string)
Counts the number of ocurrences of a char into a given string. |
static boolean |
isReplyMessage(java.lang.String command)
Checks if a command string is a reply message command (a 3 digit number). |
static java.lang.String[] |
splitString(char separatorChar,
java.lang.String string)
Splits a given string into one or more which are separated by a given separator character. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Utils()
Method Detail |
public static boolean isReplyMessage(java.lang.String command)
true
if the command corresponds to a reply message.
false
otherwise.public static int countChar(char character, java.lang.String string)
character
- The character that should be count.string
- The string where the character should be counted.
character
into the given string
.public static java.lang.String[] splitString(char separatorChar, java.lang.String string)
separatorChar
- The char which separates the different substringsstring
- The string that must be splitted
string
but separated with the
separatorChar
.public static boolean areNicksEquivalent(java.lang.String nick1, java.lang.String nick2)
nick1
- The first nick to comparenick2
- The second nick to compare
true
if both nicks are equivalent.
false
otherwise.public static boolean areChannelsEquivalent(java.lang.String channelName1, java.lang.String channelName2)
channelName1
- The first channel name to comparechannelName2
- The second channel name to compare
true
if both channels names are equivalent.
false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |