net.sf.juoserver.protocol
Class GeneralInformation
java.lang.Object
net.sf.juoserver.protocol.AbstractMessage
net.sf.juoserver.protocol.GeneralInformation
- All Implemented Interfaces:
- Serializable, Message
public class GeneralInformation
- extends AbstractMessage
General information packet.
- See Also:
- docs,
Serialized Form
Field Summary |
protected static int |
CODE
|
CODE
protected static final int CODE
- See Also:
- Constant Field Values
GeneralInformation
public GeneralInformation(byte[] contents)
GeneralInformation
public GeneralInformation(Subcommand<GeneralInformation,GeneralInformation.SubcommandType> subCommand)
encode
public ByteBuffer encode()
- Description copied from interface:
Message
- Encodes this message into a byte array packet.
The array is wrapped in a byte buffer in order to let subclasses append
their contents.
- Specified by:
encode
in interface Message
- Overrides:
encode
in class AbstractMessage
- Returns:
- the byte array representation (a.k.a. packet) of this message
getSubCommand
public Subcommand<GeneralInformation,GeneralInformation.SubcommandType> getSubCommand()
hashCode
public int hashCode()
- Specified by:
hashCode
in class AbstractMessage
equals
public boolean equals(Object obj)
- Specified by:
equals
in class AbstractMessage
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010-2012. All Rights Reserved.