com.google.appengine.api.datastore
Class IMHandle
java.lang.Object
com.google.appengine.api.datastore.IMHandle
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<IMHandle>
public final class IMHandle
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Comparable<IMHandle>
An instant messaging handle. Includes both an address and its protocol.
The protocol value is either a standard IM scheme (legal scheme values are
defined by IMHandle.Scheme
or a URL identifying the IM network for the
protocol (eg http://aim.com/).
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
IMHandle
public IMHandle(IMHandle.Scheme scheme,
java.lang.String address)
IMHandle
public IMHandle(java.net.URL network,
java.lang.String address)
getProtocol
public java.lang.String getProtocol()
getAddress
public java.lang.String getAddress()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
compareTo
public int compareTo(IMHandle o)
- Sorts first by protocol, then by address.
- Specified by:
compareTo
in interface java.lang.Comparable<IMHandle>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object