Java 8 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Java 8
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Java
8 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Java.
Email (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
- java.lang.Object
-
- com.google.appengine.api.datastore.Email
-
-
Constructor Summary
Constructors
Constructor and Description |
Email(java.lang.String email) |
-
Method Summary
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Email
public Email(java.lang.String email)
-
Method Detail
-
getEmail
public java.lang.String getEmail()
-
compareTo
public int compareTo(Email e)
- Specified by:
compareTo
in interface java.lang.Comparable<Email>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eEmail\u003c/code\u003e class represents an email address within the \u003ccode\u003ecom.google.appengine.api.datastore\u003c/code\u003e package, without any built-in validation.\u003c/p\u003e\n"],["\u003cp\u003eIt implements \u003ccode\u003eSerializable\u003c/code\u003e and \u003ccode\u003eComparable<Email>\u003c/code\u003e, allowing for serialization and comparison of email objects.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides a constructor \u003ccode\u003eEmail(String email)\u003c/code\u003e to create an Email object from a string, along with methods to \u003ccode\u003egetEmail()\u003c/code\u003e, \u003ccode\u003ecompareTo()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, and \u003ccode\u003ehashCode()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecompareTo\u003c/code\u003e method is specifically implemented as defined by the \u003ccode\u003ejava.lang.Comparable<Email>\u003c/code\u003e interface.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eequals\u003c/code\u003e and \u003ccode\u003ehashCode\u003c/code\u003e methods are overridden from the \u003ccode\u003ejava.lang.Object\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Email (Google App Engine API for Java)\n\ncom.google.appengine.api.datastore\n\nClass Email\n-----------\n\n- java.lang.Object\n-\n - com.google.appengine.api.datastore.Email\n\n-\n\n All Implemented Interfaces:\n : java.io.Serializable, java.lang.Comparable\\\u003c[Email](../../../../../com/google/appengine/api/datastore/Email.html \"class in com.google.appengine.api.datastore\")\\\u003e\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n public final class Email\n extends java.lang.Object\n implements java.io.Serializable, java.lang.Comparable\u003cEmail\u003e\n ``` \n An e-mail address datatype. Makes no attempt at validation.\n\n See Also:\n : [RFC 2822](http://tools.ietf.org/html/rfc2822) for the e-mail address\n specification.,\n[Serialized Form](../../../../../serialized-form.html#com.google.appengine.api.datastore.Email) \n-\n -\n\n ### Constructor Summary\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Summary\n\n -\n\n ### Methods inherited from class java.lang.Object\n\n`getClass, notify, notifyAll, toString, wait, wait, wait` \n-\n -\n\n ### Constructor Detail\n\n\n -\n\n #### Email\n\n ```\n public Email(java.lang.String email)\n ```\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Detail\n\n\n -\n\n #### getEmail\n\n ```\n public java.lang.String getEmail()\n ```\n\n\n -\n\n #### compareTo\n\n ```\n public int compareTo(Email e)\n ```\n\n Specified by:\n : `compareTo` in interface `java.lang.Comparable\u003c`[Email](../../../../../com/google/appengine/api/datastore/Email.html \"class in com.google.appengine.api.datastore\")`\u003e`\n\n\n -\n\n #### equals\n\n ```\n public boolean equals(java.lang.Object o)\n ```\n\n Overrides:\n : `equals` in class `java.lang.Object`\n\n\n -\n\n #### hashCode\n\n ```\n public int hashCode()\n ```\n\n Overrides:\n : `hashCode` in class `java.lang.Object`"]]