|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sblim.cimclient.internal.util.Util
public class Util
Class Util is responsible for storing commonly used static methods.
| Constructor Summary | |
|---|---|
Util()
|
|
| Method Summary | |
|---|---|
static String[] |
getFilteredStringArray(String[] pArray,
String pIgnoreElements)
Filters any elements listed in pIgnoreElements out of
pArray and returns the updated array. |
static boolean |
isBadDoubleString(String s)
isBadDoubleString checks if passed string could hang JVM. |
static String |
quote(String pStr)
Quotes the passed string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Util()
| Method Detail |
|---|
public static String quote(String pStr)
pStr -
public static boolean isBadDoubleString(String s)
s - A string to be converted to a Double.
true if double is in range of bad values,
false otherwise.
public static String[] getFilteredStringArray(String[] pArray,
String pIgnoreElements)
pIgnoreElements out of
pArray and returns the updated array. For example, if
pArray = {"A", "B", "C", "D", "E", "F", "G"} and
pIgnoreElements = "D,E,B" then this method returns
{"A", "C", "F", "G"}.
pArray - Original string array.pIgnoreElements - Comma-separated list of array elements to ignore.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||