- All Implemented Interfaces:
public abstract class Address extends Object implements SerializableThis 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
- See Also:
- Serialized Form
Constructors Constructor Description
Address()Creates a default
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
equals(Object address)The equality operator.
getType()Return a type string that identifies this address type.
toString()Return a String representation of this address object.
public abstract String getType()Return a type string that identifies this address type.
- address type
- See Also:
public abstract String toString()Return a String representation of this address object.
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
hashCodemethod that preserves the general contract of
hashCode- objects that compare as equal must have the same hashCode.