public class OperaStrings extends Object
Strings in
Guava.| Constructor and Description |
|---|
OperaStrings() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeJsString(String string)
Escape characters for safe insertion in a Javascript string contained by double quotes (").
|
static String |
escapeJsString(String string,
String quote)
Escape characters for safe insertion in a JavaScript string.
|
static boolean |
isDouble(String string)
Checks whether given string has a double value.
|
static boolean |
isInteger(String string)
Checks whether the given string has an integer value.
|
static boolean |
isNumeric(String string)
Checks whether given string has a numeric value.
|
public static boolean isNumeric(String string)
string - the string to checkpublic static boolean isDouble(String string)
string - the string to checkpublic static boolean isInteger(String string)
string - the string to checkpublic static String escapeJsString(String string)
string - the string to escapeCopyright © 2013. All Rights Reserved.