Package org.keycloak.utils
Class StringUtil
- java.lang.Object
-
- org.keycloak.utils.StringUtil
-
public class StringUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description StringUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isBlank(String str)
static boolean
isNotBlank(String str)
static String
joinValuesWithLogicalCondition(String conditionText, Collection<String> values)
Calling:
-
-
-
Method Detail
-
isBlank
public static boolean isBlank(String str)
-
isNotBlank
public static boolean isNotBlank(String str)
-
joinValuesWithLogicalCondition
public static String joinValuesWithLogicalCondition(String conditionText, Collection<String> values)
Calling:joinValuesWithLogicalCondition("or", Arrays.asList("foo", "bar", "baz", "caz" ))
will return "foo, bar, baz or caz"- Parameters:
conditionText
- conditionvalues
- values to be joined with the condition at the end- Returns:
- see the example above
-
-