javax.mail
Class Address
- Serializable
public abstract class Address
extends java.lang.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.
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.
|
equals
public abstract boolean equals(Object object)
Subclasses must provide a suitable implementation of equals().
object
- the object to compare t
- 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.
toString
public abstract String toString()
Subclasses must provide a suitable representation of their address.
- a representation of an Address as a String