org.oreodata.util
Class EmailAddress
java.lang.Object
|
+--org.oreodata.util.EmailAddress
- public class EmailAddress
- extends java.lang.Object
Utility class for checking the validity of
an internet email address. (By this, I mean well-formedness,
not whether the email address actually exists, which is another
issue entirely!)
- Author:
- Jonathan Revusky
Constructor Summary |
EmailAddress(java.lang.String address)
construct a new email address, must be
a valid (looking) internet email address. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EmailAddress
public EmailAddress(java.lang.String address)
- construct a new email address, must be
a valid (looking) internet email address.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
main
public static void main(java.lang.String[] args)
isValidEmailAddress
public static boolean isValidEmailAddress(java.lang.String address)