Class DictEncoder<KeyT extends DBusBasicType,ValueT extends DBusType>

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

public final class DictEncoder<KeyT extends DBusBasicType,ValueT extends DBusType> extends Object implements Encoder<DBusDict<KeyT,ValueT>,ByteBuffer>
An encoder which encodes a dictionary to the D-Bus marshalling format using ByteBuffer.
See Also:
  • Constructor Details

    • DictEncoder

      public DictEncoder(ByteOrder order, DBusSignature signature)
      Constructs a new instance.
      Parameters:
      order - The byte order of the produced bytes.
      signature - The full signature of the dictionary.
  • Method Details