javax.mail
类 Address

java.lang.Object
  继承者 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
另请参见:
序列化表格

构造方法摘要
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.

覆盖:
Object 中的 toString
返回:
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.

覆盖:
Object 中的 equals
参数:
address - Address object


Copyright © 2013. All Rights Reserved.