|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.lessy.util.messaging.DefaultMessage
public class DefaultMessage
| Constructor Summary | |
|---|---|
DefaultMessage()
Default |
|
DefaultMessage(String command,
Object data)
|
|
| Method Summary | |
|---|---|
String |
getCommand()
Returns the message's command. |
Object |
getData()
Returns the optional data. |
boolean |
isCommand(String command)
Compares this message's command string with the given command string and returns true only if they match. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMessage()
public DefaultMessage(String command,
Object data)
| Method Detail |
|---|
public String getCommand()
Message
getCommand in interface Messagepublic Object getData()
Message
getData in interface Messagepublic boolean isCommand(String command)
Message
isCommand in interface Messagepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||