org.xnap.chat
Class DefaultChannelInfo
java.lang.Object
org.xnap.chat.DefaultChannelInfo
- All Implemented Interfaces:
- ChannelInfo
public class DefaultChannelInfo
- extends java.lang.Object
- implements ChannelInfo
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the name of the channel. |
int |
getPeerCount()
Returns the number of peers that have joined this channel. |
java.lang.String |
getTopic()
Returns the topic of this channel. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DefaultChannelInfo
public DefaultChannelInfo(java.lang.String name,
int peerCount,
java.lang.String topic)
DefaultChannelInfo
public DefaultChannelInfo(java.lang.String name)
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
getName
public java.lang.String getName()
- Description copied from interface:
ChannelInfo
- Returns the name of the channel.
- Specified by:
getName
in interface ChannelInfo
getPeerCount
public int getPeerCount()
- Description copied from interface:
ChannelInfo
- Returns the number of peers that have joined this channel.
- Specified by:
getPeerCount
in interface ChannelInfo
getTopic
public java.lang.String getTopic()
- Description copied from interface:
ChannelInfo
- Returns the topic of this channel.
- Specified by:
getTopic
in interface ChannelInfo
Copyright © 2001-2005 XNap Team. All Rights Reserved.