javax.mail
Class Address

java.lang.Object
  extended by javax.mail.Address
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InternetAddress, NewsAddress

public abstract class Address
extends Object
implements Serializable

This abstract class models the addresses in a message. Addresses are Serializable so that they may be serialized along with other search terms.

Version:
$Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
See Also:
Serialized Form

Constructor Summary
Address()
           
 
Method Summary
abstract  boolean equals(Object object)
          Subclasses must provide a suitable implementation of equals().
abstract  String getType()
          Return a String that identifies this address type.
abstract  String toString()
          Subclasses must provide a suitable representation of their address.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Method Detail

equals

public abstract boolean equals(Object object)
Subclasses must provide a suitable implementation of equals().

Overrides:
equals in class Object
Parameters:
object - the object to compare t
Returns:
true if the subclass determines the other object is equal to this Address

getType

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

Returns:
the type of this address

toString

public abstract String toString()
Subclasses must provide a suitable representation of their address.

Overrides:
toString in class Object
Returns:
a representation of an Address as a String


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.