com.threerings.crowd.chat.data
Class ChatChannel

java.lang.Object
  extended by com.threerings.io.SimpleStreamableObject
      extended by com.threerings.crowd.chat.data.ChatChannel
All Implemented Interfaces:
Streamable, DSet.Entry, Comparable<ChatChannel>

public abstract class ChatChannel
extends SimpleStreamableObject
implements Comparable<ChatChannel>, DSet.Entry

Represents a chat channel.


Constructor Summary
ChatChannel()
           
 
Method Summary
abstract  int compareTo(ChatChannel other)
           
 boolean equals(Object other)
           
 Comparable<?> getKey()
          Each entry provide an associated key which is used to determine its uniqueness in the set.
abstract  String getLockName()
          Converts this channel into a unique name that can be used as the name of the distributed lock used when resolving the channel.
abstract  int hashCode()
           
 
Methods inherited from class com.threerings.io.SimpleStreamableObject
toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChatChannel

public ChatChannel()
Method Detail

compareTo

public abstract int compareTo(ChatChannel other)
Specified by:
compareTo in interface Comparable<ChatChannel>

getLockName

public abstract String getLockName()
Converts this channel into a unique name that can be used as the name of the distributed lock used when resolving the channel.


getKey

public Comparable<?> getKey()
Description copied from interface: DSet.Entry
Each entry provide an associated key which is used to determine its uniqueness in the set. See the DSet class documentation for further information.

Specified by:
getKey in interface DSet.Entry

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public abstract int hashCode()
Overrides:
hashCode in class Object