This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.mail
class Address

javax.mail.Address
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InternetAddress, NewsAddress

Most common way to construct:

String from = …;

Address fromAdr = new InternetAddress(from);

Based on 8 examples


public abstract class Address
extends Object
implements Serializable

This abstract class models the addresses in a message. Subclasses provide specific implementations. Subclasses will typically be serializable so that (for example) the use of Address objects in search terms can be serialized along with the search terms.

See Also (auto-generated):

Transport

Session

Properties


Constructor Summary

          
 
Method Summary
abstract boolean
equals(Object address)

          The equality operator.
abstract String

          Return a type string that identifies this address type.
abstract String

          Return a String representation of this address object.
 

Constructor Detail

Address

public Address()
Method Detail

equals

public abstract boolean equals(Object address)
The equality operator. Subclasses should provide an implementation of this method that supports value equality (do the two Address objects represent the same destination?), not object reference equality. A subclass must also provide a corresponding implementation of the hashCode method that preserves the general contract of equals and hashCode - objects that compare as equal must have the same hashCode.

Overrides:
equals in class Object
Parameters:
address - Address object

getType

public abstract String getType()
Return a type string that identifies this address type.

Returns:
address type

toString

public abstract String toString()
Return a String representation of this address object.

Overrides:
toString in class Object
Returns:
string representation of this address


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.