public class EMailValidationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
DEFAULT_EMAIL_PATTERN |
| Constructor and Description |
|---|
EMailValidationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(Object value)
Learn whether a given object is a valid email address.
|
static boolean |
isValid(Object value,
Pattern aPattern)
Learn whether a particular value matches a given pattern per
Matcher.matches(). |
public static final Pattern DEFAULT_EMAIL_PATTERN
public static boolean isValid(Object value)
value - to checktrue if the validation passespublic static boolean isValid(Object value, Pattern aPattern)
Matcher.matches().value - aPattern - true if value was a String
matching aPatternCopyright © 2010–2020 The Apache Software Foundation. All rights reserved.