javax.mail

Class Address

Implemented Interfaces:
Serializable
Known Direct Subclasses:
InternetAddress, NewsAddress

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.
Version:
1.3
Author:
Chris Burdess

Method Summary

abstract boolean
equals(Object obj)
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.

Method Details

equals

public abstract boolean equals(Object obj)
The equality operator.

getType

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

toString

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

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved