public class Strings extends Object
| Constructor and Description |
|---|
Strings() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
empty(String text)
Returns true if the string is null or empty
|
static boolean |
equalAnyValue(String actual,
Iterable<?> values)
Returns true if the actual value matches any of the String representations of the given values.
|
static boolean |
equalAnyValue(String actual,
Object... values)
Returns true if the actual value matches any of the String representations of the given values.
|
static String |
joinNotEmpty(String sep,
String... values)
Returns a joined string with the separator for all the non-empty strings
|
static boolean |
notEmpty(String text)
Returns true if the string is not null and not empty
|
static String |
toString(Object value) |
static String |
trimAllPrefix(String text,
String prefix)
Trim all prefixes on the given text of the given prefix
|
public static boolean empty(String text)
public static boolean notEmpty(String text)
public static boolean equalAnyValue(String actual, Object... values)
So can match against String or URL objects etc
public static boolean equalAnyValue(String actual, Iterable<?> values)
So can match against String or URL objects etc
public static String trimAllPrefix(String text, String prefix)
Copyright © 2076–2017 Red Hat. All rights reserved.