public class IpsStringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBlank(String s)
Returns
true if s is either null, the empty string or a string that only
contains whitespaces, otherwise false. |
static boolean |
isEmpty(String s)
Returns
true if s is either null or the empty string, otherwise
false. |
static boolean |
isNotEmpty(String s)
Returns
true if s is not null and is not the empty string, otherwise
false. |
static String |
join(Collection<?> collection,
String separator)
Joins the elements of the provided Collection into a single String containing the provided
elements with the given separator.
|
static String |
join(Object[] objectArray,
String separator) |
public static final String EMPTY
public static final boolean isEmpty(String s)
true if s is either null or the empty string, otherwise
false.public static final boolean isNotEmpty(String s)
true if s is not null and is not the empty string, otherwise
false.public static final boolean isBlank(String s)
true if s is either null, the empty string or a string that only
contains whitespaces, otherwise false.public static final String join(Collection<?> collection, String separator)
collection - the Collection of values to join together, may be nullseparator - the separator to use, null treated as ""Copyright © 2016. All rights reserved.