|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.net.ChatMessage
public class ChatMessage
This class represents a message that is passed between two
ChatSessions.
| Constructor Summary | |
|---|---|
ChatMessage(String sender,
String text)
Creates a new ChatMessage with the current time. |
|
| Method Summary | |
|---|---|
boolean |
isLastMessage()
Returns true if this is the last message sent |
String |
toString()
Returns a textual representation of this ChatMessage
that is suitable for displaying in a ChatSession. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChatMessage(String sender,
String text)
ChatMessage with the current time.
| Method Detail |
|---|
public boolean isLastMessage()
true if this is the last message sent
public String toString()
ChatMessage
that is suitable for displaying in a ChatSession.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||