public class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMAIL_REGEX
Email regex.
|
static String |
EMPTY_STRING_REGEX
Empty string regex.
|
static String |
SPACE_REGEX
Space regex.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkEmail(String email)
Check if the email string has an email regex.
|
static boolean |
checkObject(Object obj)
Check if the object isnt null.
|
static boolean |
checkString(String str)
Check if the String isnt null or empty.
|
public static final String EMPTY_STRING_REGEX
public static final String EMAIL_REGEX
public static final String SPACE_REGEX
public static boolean checkObject(Object obj)
obj - to checkpublic static boolean checkString(String str)
str - to checkpublic static boolean checkEmail(String email)
email - to checkCopyright © 2019. All rights reserved.