public class Functions
extends java.lang.Object
Constructor and Description |
---|
Functions() |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(java.lang.String whole,
java.lang.String part)
Returns true if the first string contains the second.
|
static boolean |
containsIgnoreCase(java.lang.String whole,
java.lang.String part)
Returns true if the first string contains the second.
|
static boolean |
endsWith(java.lang.String whole,
java.lang.String part)
Returns true if the first string contains the second.
|
static java.lang.String |
escapeXml(java.lang.String string)
Escapes the XML string.
|
static int |
indexOf(java.lang.String whole,
java.lang.String part)
Returns the index of the part in the whole.
|
static java.lang.String |
join(java.lang.String[] array,
java.lang.String sep)
Joins the array.
|
static int |
length(java.lang.Object obj)
Returns the length of the object
|
static java.lang.String |
replace(java.lang.String input,
java.lang.String before,
java.lang.String after)
Replaces substrings.
|
static java.lang.String[] |
split(java.lang.String input,
java.lang.String delimiters)
Splits into
|
static boolean |
startsWith(java.lang.String whole,
java.lang.String part)
Returns true if the first string starts with the second.
|
static java.lang.String |
substring(java.lang.String string,
int begin,
int end)
Returns true if the first string starts with the second.
|
static java.lang.String |
substringAfter(java.lang.String whole,
java.lang.String part)
Returns the substring after the match.
|
static java.lang.String |
substringBefore(java.lang.String whole,
java.lang.String part)
Returns the substring before the match.
|
static java.lang.String |
toLowerCase(java.lang.String string)
Convert to lower case.
|
static java.lang.String |
toUpperCase(java.lang.String string)
Convert to upper case.
|
static java.lang.String |
trim(java.lang.String string)
Trim
|
public static int length(java.lang.Object obj)
public static boolean contains(java.lang.String whole, java.lang.String part)
public static boolean containsIgnoreCase(java.lang.String whole, java.lang.String part)
public static boolean endsWith(java.lang.String whole, java.lang.String part)
public static java.lang.String escapeXml(java.lang.String string)
public static int indexOf(java.lang.String whole, java.lang.String part)
public static java.lang.String join(java.lang.String[] array, java.lang.String sep)
public static java.lang.String replace(java.lang.String input, java.lang.String before, java.lang.String after)
public static java.lang.String[] split(java.lang.String input, java.lang.String delimiters)
public static boolean startsWith(java.lang.String whole, java.lang.String part)
public static java.lang.String substring(java.lang.String string, int begin, int end)
public static java.lang.String substringAfter(java.lang.String whole, java.lang.String part)
public static java.lang.String substringBefore(java.lang.String whole, java.lang.String part)
public static java.lang.String toLowerCase(java.lang.String string)
public static java.lang.String toUpperCase(java.lang.String string)
public static java.lang.String trim(java.lang.String string)