public class Strings extends java.lang.Object
The Strings helper class. We can avoid importing Guava or Apache commons for now.
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
emptyToNull(java.lang.String string)
Empty to null.
|
static boolean |
isNotEmpty(java.lang.String string)
Checks if is not null or empty.
|
static boolean |
isNullOrEmpty(java.lang.String string)
Checks if is null or empty.
|
static java.lang.String |
nullToEmpty(java.lang.String string)
Null to empty.
|
public static java.lang.String emptyToNull(java.lang.String string)
Empty to null.
string
- the stringpublic static boolean isNotEmpty(java.lang.String string)
Checks if is not null or empty.
string
- the stringpublic static boolean isNullOrEmpty(java.lang.String string)
Checks if is null or empty.
string
- the stringpublic static java.lang.String nullToEmpty(java.lang.String string)
Null to empty.
string
- the stringCopyright © 2014-2018 Konik.io. All Rights Reserved.