当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Class Address - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.mail
Class Address
java.lang.Object
|
+--javax.mail.Address
- Direct Known Subclasses:
- InternetAddress, NewsAddress
- public abstract class Address
- extends java.lang.Object
This abstract class models the addresses in a message.
Subclasses provide specific implementations.
Method Summary |
abstract boolean |
equals(java.lang.Object address)
The equality operator. |
abstract java.lang.String |
getType()
Return a type string that identifies this address type. |
abstract java.lang.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 |
Address
public Address()
getType
public abstract java.lang.String getType()
- Return a type string that identifies this address type.
- Returns:
- address type
- See Also:
InternetAddress
toString
public abstract java.lang.String toString()
- Return a String representation of this address object.
- Overrides:
toString
in class java.lang.Object
- Returns:
- string representation of this address
equals
public abstract boolean equals(java.lang.Object address)
- The equality operator.
- Overrides:
equals
in class java.lang.Object
- Parameters:
address
- Address object