Address (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.mail Class Address

java.lang.Object
  extended by javax.mail.Address
所有已实现的接口:
Serializable
直接已知子类:
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.

作者:
John Mani, Bill Shannon
另请参见:
Serialized Form

构造器摘要
Address()
           
 
方法摘要
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.
 
类方法继承 java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

Address

public Address()
方法详细信息

getType

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

返回:
address type
另请参见:
InternetAddress

toString

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

重写:
toString in class Object
返回:
string representation of this address

equals

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

重写:
equals in class Object
参数:
address - Address object

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.