public class Strings extends Object
| Constructor and Description | 
|---|
| Strings() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | addAsteriscsFromAnArray(String array)This method creates an String of words (blanck separated)
 enveloped by asteriscs: Example
 "This is an example" returns
 "*This* *is* *an* *example*" | 
| static Vector | allWordForms(String str,
            boolean withAccents)This method returns all the forms than can have a 
 word to do an advanced search. | 
| static boolean | find(String pattern,
    String[] array)Find a pattern into one array | 
| static String | getBlankSeparated(String[] input)returns a list (blanck-separated) in one unique string | 
| static String | getComaSeparated(String[] input)returns a list (comma-separated) in one unique string | 
| static String | getUperCaseFirst(String str)It returns an string with the firs chacarter in UperCase | 
| static String[] | join(String[] s1,
    String[] s2)This function joins two strings | 
| static String | removeAccents(String str)This method remove all the string accents | 
| static String | replace(String str,
       String pattern,
       String replace)Replace a part of a String | 
| static TreeMap | separateParams(String pairValues)Creates a TreeMap froma KVP | 
| static String | tryIfIsNumber(String str,
             int charNumber)This function is used to try if a string is a number. | 
public static String replace(String str, String pattern, String replace)
str - String to find the patternpattern - Pattern to findreplace - String to replacepublic static boolean find(String pattern, String[] array)
pattern - array - public static String[] join(String[] s1, String[] s2)
s1 - s2 - public static String getComaSeparated(String[] input)
input - public static String getBlankSeparated(String[] input)
input - public static String addAsteriscsFromAnArray(String array)
array - Input Stringpublic static String tryIfIsNumber(String str, int charNumber)
str - Input StringcharNumber - Number of chars that must be triedpublic static String removeAccents(String str)
str - Input Stringpublic static Vector allWordForms(String str, boolean withAccents)
str - Input stringpublic static String getUperCaseFirst(String str)
str - Input str