Top Description Fields Constructors Methods
javax.mail

public abstract Class Address

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
javax.mail.internet.InternetAddress, javax.mail.internet.NewsAddress
Imports
java.io.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.
Authors
John Mani, Bill Shannon

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract boolean
equals(Object
Address object
address
)

Overrides java.lang.Object.equals.

The equality operator.
public abstract String

Returns:

address type
getType
()

Return a type string that identifies this address type.

public abstract String

Returns:

string representation of this address
toString
()

Overrides java.lang.Object.toString.

Return a String representation of this address object.
Inherited from java.lang.Object:
clonefinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

Addressback to summary
public Address()

Method Detail

equalsback to summary
public abstract boolean equals(Object address)

Overrides java.lang.Object.equals.

The equality operator. Subclasses should provide an implementation of this method that supports value equality (do the two Address objects represent the same destination?), not object reference equality. A subclass must also provide a corresponding implementation of the hashCode method that preserves the general contract of equals and hashCode - objects that compare as equal must have the same hashCode.

Parameters
address:Object

Address object

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
getTypeback to summary
public abstract String getType()

Return a type string that identifies this address type.

Returns:String

address type

See Also
javax.mail.internet.InternetAddress
toStringback to summary
public abstract String toString()

Overrides java.lang.Object.toString.

Return a String representation of this address object.

Returns:String

string representation of this address

Annotations
@Override