Class DictDecoder<KeyT extends DBusBasicType,ValueT extends DBusType>

java.lang.Object
com.lucimber.dbus.codec.decoder.DictDecoder<KeyT,ValueT>
Type Parameters:
KeyT - The data type of the key.
ValueT - The data type of the value.
All Implemented Interfaces:
Decoder<ByteBuffer,DBusDict<KeyT,ValueT>>

public final class DictDecoder<KeyT extends DBusBasicType,ValueT extends DBusType> extends Object implements Decoder<ByteBuffer,DBusDict<KeyT,ValueT>>
A decoder which unmarshals a dictionary from the byte stream format used by D-Bus.
  • Constructor Details

    • DictDecoder

      public DictDecoder(DBusSignature signature)
      Creates a new decoder for D-Bus dictionary types.
      Parameters:
      signature - the dictionary signature to decode
      Throws:
      IllegalArgumentException - if signature is not a dictionary
  • Method Details