public enum IpsStringUtils extends Enum<IpsStringUtils>
| 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) |
static String |
toLowerFirstChar(String string) |
static IpsStringUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpsStringUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final String EMPTY
public static IpsStringUtils[] values()
for (IpsStringUtils c : IpsStringUtils.values()) System.out.println(c);
public static IpsStringUtils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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 © 2017. All rights reserved.