@Immutable public final class EmailAddressHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMAIL_ADDRESS_PATTERN
This is the email RegEx :)
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getUnifiedEmailAddress(String sEmailAddress)
Get the unified version of an email address.
|
static boolean |
isValid(String sEmailAddress)
Checks if a value is a valid e-mail address according to a certain regular
expression.
|
public static final String EMAIL_ADDRESS_PATTERN
@Nullable public static String getUnifiedEmailAddress(@Nullable String sEmailAddress)
sEmailAddress - The email address to unify. May be null.null if the input address
is null.public static boolean isValid(@Nullable String sEmailAddress)
sEmailAddress - The value validation is being performed on. A null
value is considered invalid.true if the email address is valid, false
otherwise.Copyright © 2014–2020 Philip Helger. All rights reserved.