javax.mail

Class Address

Implemented Interfaces:
Serializable
Known Direct Subclasses:
InternetAddress, NewsAddress

public abstract class Address
extends java.lang.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.

Method Summary

boolean
equals(Object obj)
The equality operator.
String
getType()
Return a type string that identifies this address type.
String
toString()
Return a String representation of this address object.

Method Details

equals

public boolean equals(Object obj)
The equality operator.


getType

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


toString

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