T
- The type of an encoded command.public interface CommandCodec<T>
Command
objects to and from another representation.Modifier and Type | Method and Description |
---|---|
Command |
decode(T encodedCommand)
Decodes a command.
|
T |
encode(Command command)
Encodes a command.
|
T encode(Command command)
command
- the command to encode.UnsupportedCommandException
- If the command is not supported by this codec.Command decode(T encodedCommand)
encodedCommand
- the command to decode.UnsupportedCommandException
- If the command is not supported by this codec.Copyright © 2015. All rights reserved.