public abstract class AbstractContact extends java.lang.Object implements Contact
Contact
interface which is to
aid implementers.Constructor and Description |
---|
AbstractContact() |
Modifier and Type | Method and Description |
---|---|
void |
addResourceListener(ContactResourceListener l)
Adds the given ContactResourceListener to listen for events
related to contact resources changes.
|
boolean |
equals(java.lang.Object obj) |
protected void |
fireContactResourceEvent(ContactResourceEvent event)
Notifies all registered ContactResourceListeners that an event
has occurred.
|
java.lang.String |
getPersistableAddress()
Returns the same as getAddress function.
|
java.util.Collection<ContactResource> |
getResources()
Returns a collection of resources supported by this contact or null
if it doesn't support resources.
|
int |
hashCode() |
boolean |
isMobile()
Whether contact is mobile one.
|
void |
removeResourceListener(ContactResourceListener l)
Removes the given ContactResourceListener listening for events
related to contact resources changes.
|
boolean |
supportResources()
Indicates if this contact supports resources.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAddress, getDisplayName, getImage, getParentContactGroup, getPersistentData, getPresenceStatus, getProtocolProvider, getStatusMessage, isPersistent, isResolved
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean supportResources()
This default implementation indicates no support for contact resources.
supportResources
in interface Contact
public java.util.Collection<ContactResource> getResources()
This default implementation indicates no support for contact resources.
getResources
in interface Contact
public void addResourceListener(ContactResourceListener l)
addResourceListener
in interface Contact
l
- the ContactResourceListener to addpublic void removeResourceListener(ContactResourceListener l)
removeResourceListener
in interface Contact
l
- the ContactResourceListener to removeprotected void fireContactResourceEvent(ContactResourceEvent event)
event
- the ContactResourceEvent to fire notification forpublic java.lang.String getPersistableAddress()
getPersistableAddress
in interface Contact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.