javax.mail
Class Address

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

public abstract class Address
extends java.lang.Object
implements java.io.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 06:01:51 +0200 (Wed, 25 Oct 2006) $
See Also:
Serialized Form

Constructor Summary
Address()
           
 
Method Summary
abstract  boolean equals(java.lang.Object object)
          Subclasses must provide a suitable implementation of equals().
abstract  java.lang.String getType()
          Return a String that identifies this address type.
abstract  java.lang.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(java.lang.Object object)
Subclasses must provide a suitable implementation of equals().

Overrides:
equals in class java.lang.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 java.lang.String getType()
Return a String that identifies this address type.

Returns:
the type of this address

toString

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

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


Copyright © {inceptionYear}-2007 null. All Rights Reserved.