core

## Class Coder

- java.lang.Object
- - core.Coder

-     public class Coder
      extends java.lang.Object

  Encodes WM-Bus types.
  Author:
    David Hudec (dwdization@gmail.com)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Coder()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.Byte[]` | `codeTypeF(java.util.Calendar cal, boolean summerTime, boolean valid)` Encodes a time instant into Wireless M-Bus Type F structured Byte[ ].
    `static java.lang.Byte[]` | `codeTypeG(java.util.Calendar cal)` Encodes a time instant into Wireless M-Bus Type G structured Byte[ ].

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Coder

          public Coder()

  - ### Method Detail

    - #### codeTypeF

          public static java.lang.Byte[] codeTypeF(java.util.Calendar cal,
                                                   boolean summerTime,
                                                   boolean valid)

      Encodes a time instant into Wireless M-Bus Type F structured Byte[ ].
      Parameters:
        `cal` - Calendar representing the time instant to encode.
        `summerTime` - whether to set summer time bit or not
        `valid` - whether to set validity bit or not
      Returns:
        Type G in the form of Byte[ ]

    - #### codeTypeG

          public static java.lang.Byte[] codeTypeG(java.util.Calendar cal)

      Encodes a time instant into Wireless M-Bus Type G structured Byte[ ].
      Parameters:
        `cal` - Calendar representing the time instant to encode.
      Returns:
        Type G in the form of Byte[ ]