| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
String from = …;
Address fromAdr = new InternetAddress(from);
Based on 8 examples
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.
Constructor Summary | |
---|---|
Address() |
Method Summary | |
---|---|
abstract boolean |
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. |
Constructor Detail |
---|
public Address()
Method Detail |
---|
public abstract boolean equals(Object address)
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 objectpublic abstract String getType()
public abstract String toString()
toString
in class Object
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |