Classes

String

Method Summary
Method Attributes Method Name and Description
<boolean>  
Returns true if and only if this string contains one or more of the specified values.
<boolean>  
endsWith(needle)
Tests if this string ends with the specified suffix.
<String>  
replaceAll(SearchFor, ReplaceText)
Replaces each substring of this String that matches the given substring with the given replacement.
<boolean>  
startsWith(needle)
Tests if this string starts with the specified prefix.
<String>  
trim()
Returns a copy of the string, with leading and trailing space omitted.
Method Detail
{boolean} contains()
Returns true if and only if this string contains one or more of the specified values.

For boolean values of true the String is compared with "yes", "on", "true", and "1"; For boolean values of false with "no", "off", "false", and "0".

For String values the following wildcards are supported:

E.g. to check if the value of the variable "command" is set

if (command.contains("*")) {
  ...
}
Parameters:
{boolean or String} ...
the values to search for
Returns:
true if this string contains one or more of the specified values, false otherwise

{boolean} endsWith(needle)
Tests if this string ends with the specified suffix.
Parameters:
{String} needle
Returns:
true if the character sequence represented by the argument is a suffix of the character sequence represented by this object; false otherwise.

{String} replaceAll(SearchFor, ReplaceText)
Replaces each substring of this String that matches the given substring with the given replacement.
Parameters:
{String} SearchFor
{String} ReplaceText
Returns:
The resulting String

{boolean} startsWith(needle)
Tests if this string starts with the specified prefix.
Parameters:
{String} needle
Returns:
true if the character sequence represented by the argument is a prefix of the character sequence represented by this string; false otherwise.

{String} trim()
Returns a copy of the string, with leading and trailing space omitted.
Returns:
A copy of this string with leading and trailing space removed, or this string if it has no leading or trailing space.