Class StringUtil
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.utils.StringUtil
public class StringUtil extends Object
- Author:
- Madhav Krishna
-
Method Summary
Modifier and Type Method Description static booleancontainsText(String str, String text)Checks whether the text exist in string or not.static booleancontainsWord(String str, String word)Checks whether a word present in a string.static booleanendWithText(String str, String text)Checks if string ends with a text.static booleanisEmptyAfterTrim(String str)static booleanisEmptyNoTrim(String str)static booleanstartsWithText(String str, String text)Checks if the string starts with text.static Stringtrim(String str)Trims the leading and trailing spaces
-
Method Details
-
trim
Trims the leading and trailing spaces- Parameters:
str-- Returns:
-
isEmptyAfterTrim
-
isEmptyNoTrim
-
containsText
Checks whether the text exist in string or not.- Parameters:
str-text-- Returns:
-
startsWithText
Checks if the string starts with text.- Parameters:
str-text-- Returns:
-
endWithText
Checks if string ends with a text.- Parameters:
str-text-- Returns:
-
containsWord
Checks whether a word present in a string.- Parameters:
str-word-- Returns:
-