com.h3c.util.snmp.command

## Interface Decoder<E,C>

- Type Parameters:
    `E` - Type of the element to encode.
    `C` - Type of the coding format.
  All Known Subinterfaces:
    Codec<E,C>
  All Known Implementing Classes:
    SnmpAbstractCodec, SnmpAbstractDecoder

      public interface Decoder<E,C>

  A decoder is a device which does the reverse of an encoder, undoing the encoding so that the original information can be retrieved. The same method used to encode is usually just reversed in order to decode.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `E` | `decode(C code)` Decodes a code to reconstruct the original entity.

- - ### Method Detail

    - #### decode

          E decode(C code)
                   throws IllegalArgumentException

      Decodes a code to reconstruct the original entity.
      Parameters:
        `code` - Code representing an entity.
      Returns:
        An entity with the state given by the code.
      Throws:
        `IllegalArgumentException` - If `code` does not have the appropriate format.

Copyright © 2014. All Rights Reserved.