com.objectxp.msg
Class Address
java.lang.Object
com.objectxp.msg.Address
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- GsmAddress
public class Address
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
This class represent a simple address.
- Since:
- jSMS 1.6.2
- See Also:
GsmAddress,
Serialized Form
|
Constructor Summary |
Address(java.lang.String address)
|
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Compares this address to the specified object. |
java.lang.String |
getAddress()
|
int |
hashCode()
|
java.lang.String |
toString()
Returns a string representation of the address. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Address
public Address(java.lang.String address)
getAddress
public java.lang.String getAddress()
toString
public java.lang.String toString()
- Returns a string representation of the address.
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Compares this address to the specified object.
The result is
true if and only if the argument is not
null and is a Address object that has the
same toString() result.
- Overrides:
equals in class java.lang.Object
- Parameters:
obj - the object to compare this Address
against.
- Returns:
true if the Address are equal;
false otherwise.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
object XP, Inc. © 2000-2008. All rights reserved object XP