public final class Strings extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEmpty(String value)
Is a string null or empty?
|
static int |
parseIntOrDefault(String value,
int defaultValue)
Parse an int from a String.
|
public static boolean isEmpty(String value)
value - to be tested.public static int parseIntOrDefault(String value, int defaultValue) throws NumberFormatException
value - to be parsed.defaultValue - to be used if the String value is null.NumberFormatExceptionCopyright © 2014-2022 Real Logic Limited. All Rights Reserved.