javax.mail
Class Address

java.lang.Object
  |
  +--javax.mail.Address
Direct Known Subclasses:
InternetAddress, NewsAddress

public abstract class Address
extends Object

This abstract class models the addresses in a message. Subclasses provide specific implementations.


Constructor Summary
Address()
           
 
Method Summary
abstract  boolean equals(Object address)
          The equality operator.
abstract  String getType()
          Return a type string that identifies this address type.
abstract  String toString()
          Return a String representation of this address object.
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Method Detail

getType

public abstract String getType()
Return a type string that identifies this address type.
Returns:
address type
See Also:
InternetAddress

toString

public abstract String toString()
Return a String representation of this address object.
Overrides:
toString in class Object
Returns:
string representation of this address

equals

public abstract boolean equals(Object address)
The equality operator.
Overrides:
equals in class Object
Parameters:
address - Address object