public class MyString
extends java.lang.Object
Constructor and Description |
---|
MyString() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
asCSV(java.util.Collection<? extends java.lang.Object> set)
Returns a String containing all the Strings in set, in comma-separated syntax
|
static java.util.Set<java.lang.String> |
getNames(java.lang.String in,
char c)
Gets a Set of the non-empty strings which appear in the given input string between any occurrences of the given separator character
|
static java.util.LinkedList<java.lang.String> |
getNamesInEntryOrder(java.lang.String in,
char c)
Gets a LinkedList of the non-empty strings which appear in the given input string between any occurrences of the given separator character
|
static java.util.LinkedHashSet<java.lang.String> |
getNamesInEntryOrderWithoutDuplicates(java.lang.String in,
char c)
Gets a LinkedHashSet of the non-empty strings which appear in the given input string between any occurrences of the given separator character
|
static int |
indexOf(java.lang.CharSequence searchFor,
char delimiter,
java.lang.CharSequence searchIn)
Finds the index in the StringBuffer where the given search String appears between paragraph marks, using case insensitive comparison
|
static int |
whiteSpacePos(java.lang.String s)
Gets the [offset of the] first position in s that is a whitespace character
|
public static java.lang.String asCSV(java.util.Collection<? extends java.lang.Object> set)
set
- The set of Strings to be concatenated in comma-separated formpublic static java.util.Set<java.lang.String> getNames(java.lang.String in, char c)
in
- A string to be split, of which the individual nonempty portions are to be returned as a listc
- The separator characterpublic static java.util.LinkedList<java.lang.String> getNamesInEntryOrder(java.lang.String in, char c)
in
- A string to be split, of which the individual nonempty portions are to be returned as a listc
- The separator characterpublic static java.util.LinkedHashSet<java.lang.String> getNamesInEntryOrderWithoutDuplicates(java.lang.String in, char c)
in
- A string to be split, of which the individual nonempty portions are to be returned as a listc
- The separator characterpublic static int whiteSpacePos(java.lang.String s)
s
- a stringpublic static final int indexOf(java.lang.CharSequence searchFor, char delimiter, java.lang.CharSequence searchIn)
searchFor
- The attribute namedelimiter
- The delimiter char that is supposed to surround the searchForsearchIn
- The string in which the attribute name possibly appears