Added toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2201 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
//
|
||||
// $Id: ChatMessage.java,v 1.1 2002/07/26 20:35:01 ray Exp $
|
||||
// $Id: ChatMessage.java,v 1.2 2003/01/21 01:08:10 mdb Exp $
|
||||
|
||||
package com.threerings.crowd.chat;
|
||||
|
||||
import com.samskivert.util.StringUtil;
|
||||
|
||||
/**
|
||||
* The abstract base class of all the client-side ChatMessage objects.
|
||||
*/
|
||||
@@ -27,4 +29,13 @@ public abstract class ChatMessage
|
||||
this.localtype = localtype;
|
||||
timestamp = System.currentTimeMillis();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a string representation of this instance.
|
||||
*/
|
||||
public String toString ()
|
||||
{
|
||||
return StringUtil.shortClassName(this) + "[msg=" + message +
|
||||
", type=" + localtype + ", stamp=" + timestamp + "]";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user