T - The type of an encoded command.public interface CommandCodec<T>
Command objects to and from another representation.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.