net.antichess.ai
Class ChatEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--net.antichess.ai.ChatEvent
All Implemented Interfaces:
Serializable

public final class ChatEvent
extends EventObject

This is an event fired by a player who wants to send a message. Its constructor has package-level access for security reasons.

Author:
Michael Bolin
See Also:
Serialized Form

Field Summary
protected  String message
          the chat message
protected  long timeInMillis
          the time at which the message was sent
 
Fields inherited from class java.util.EventObject
source
 
Method Summary
 String getMessage()
           
 long getTimeSent()
           
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected String message
the chat message


timeInMillis

protected long timeInMillis
the time at which the message was sent

Method Detail

getMessage

public String getMessage()
Returns:
returns the message

getTimeSent

public long getTimeSent()
Returns:
the time that the message was sent as the number of milliseconds since January 1, 1970, 00:00:00 GMT
See Also:
Date

toString

public String toString()
Overrides:
toString in class EventObject
Returns:
returns the message


Copyright © 2003 antichess.net. All Rights Reserved.