Package com.kraken.api.util
Class StringUtils
- java.lang.Object
-
- com.kraken.api.util.StringUtils
-
public class StringUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringaddColTags(java.lang.String text)static intgetIndex(java.lang.String[] terms, java.lang.String term)Finds the index of a term in an array of terms, ignoring case.static java.lang.StringstripColTags(java.lang.String source)static java.lang.String[]stripColTags(java.lang.String[] sourceList)Strips<col=...>tags from each string in the provided array.
-
-
-
Method Detail
-
getIndex
public static int getIndex(java.lang.String[] terms, java.lang.String term)Finds the index of a term in an array of terms, ignoring case.- Parameters:
terms- the array of terms to searchterm- the term to find- Returns:
- the index of the term in the array, or -1 if not found
-
stripColTags
public static java.lang.String[] stripColTags(java.lang.String[] sourceList)
Strips<col=...>tags from each string in the provided array.- Parameters:
sourceList- the array of strings to process- Returns:
- a new array with
<col=...>tags removed
-
stripColTags
public static java.lang.String stripColTags(java.lang.String source)
-
addColTags
public static java.lang.String addColTags(java.lang.String text)
-
-