Example usage for Java org.apache.wicket.util.string Strings fields, constructors, methods, implement or subclass
The text is from its open source code.
String | afterFirst(final String s, final char c) Returns everything after the first occurrence of the given character in s. |
String | afterLast(final String s, final char c) Returns everything after the last occurrence of the given character in s. |
String | beforeFirst(final String s, final char c) Returns everything before the first occurrence of the given character in s. |
String | beforeLast(final String s, final char c) Returns everything before the last occurrence of the given character in s. |
String | beforeLastPathComponent(final String path, final char separator) Gets everything before the last path component of a path using a given separator. |
String | capitalize(final String s) Capitalizes a string. |
String | defaultIfEmpty(String originalString, String defaultValue) Returns the original string if this one is not empty (i.e. |
CharSequence | escapeMarkup(final CharSequence s) Converts a Java String to an HTML markup string, but does not convert normal spaces to non-breaking space entities (<nbsp>). |
CharSequence | escapeMarkup(final CharSequence s, final boolean escapeSpaces, final boolean convertToHtmlUnicodeEscapes) Converts a Java String to an HTML markup String by replacing illegal characters with HTML entities where appropriate. |
CharSequence | escapeMarkup(final CharSequence s, final boolean escapeSpaces) Converts a Java String to an HTML markup String by replacing illegal characters with HTML entities where appropriate. |
int | indexOf(final CharSequence sequence, final char ch) returns the zero-based index of a character within a char sequence. |
boolean | isEmpty(final CharSequence string) Checks whether the string is considered empty. |
boolean | isEqual(final String string1, final String string2) Checks whether two strings are equals taken care of 'null' values and treating 'null' same as trim(string).equals("") |
boolean | isTrue(final String s) Converts the text in s to a corresponding boolean. |
String | join(final String separator, final List Joins string fragments using the specified separator |
String | join(final String separator, final String... fragments) Joins string fragments using the specified separator |
String | lastPathComponent(final String path, final char separator) Gets the last path component of a path using a given separator. |
CharSequence | replaceAll(final CharSequence s, final CharSequence searchFor, CharSequence replaceWith) Replace all occurrences of one string replaceWith another string. |
String[] | split(final String s, final char c) Simpler, faster version of String.split() for splitting on a simple character. |
String | stripJSessionId(final String url) Strip any jsessionid and possibly other redundant info that might be in our way. |
Boolean | toBoolean(final String s) Converts the string s to a Boolean. |
String | toEscapedUnicode(final String unicodeString) Converts unicodes to encoded \uxxxx. |
CharSequence | toMultilineMarkup(final CharSequence s) Converts a String to multiline HTML markup by replacing newlines with line break entities (<br/>) and multiple occurrences of newline with paragraph break entities (<p>). |
String | toString(final Object object) Converts the given object to a string. |
String | toString(final Throwable throwable) Converts a Throwable to a string. |