Package com.lucimber.dbus.type
Class DBusDictEntry<KeyT extends DBusBasicType,ValueT extends DBusType>
java.lang.Object
com.lucimber.dbus.type.DBusDictEntry<KeyT,ValueT>
- Type Parameters:
KeyT
- The key's data type.ValueT
- The value's data type.
- All Implemented Interfaces:
DBusContainerType
,DBusType
,Map.Entry<KeyT,
ValueT>
public final class DBusDictEntry<KeyT extends DBusBasicType,ValueT extends DBusType>
extends Object
implements Map.Entry<KeyT,ValueT>, DBusContainerType
A map entry (key-value pair).
-
Constructor Summary
ConstructorsConstructorDescriptionDBusDictEntry
(DBusDictEntry<KeyT, ValueT> other) Constructs a new instance from another.DBusDictEntry
(DBusSignature signature, KeyT key) Constructs a new instance.DBusDictEntry
(DBusSignature signature, KeyT key, ValueT value) Constructs a new instance. -
Method Summary
-
Constructor Details
-
DBusDictEntry
Constructs a new instance.- Parameters:
signature
- aDBusSignature
; must describe an dict-entrykey
- aDBusBasicType
-
DBusDictEntry
Constructs a new instance.- Parameters:
signature
- aDBusSignature
; must describe an dict-entrykey
- aDBusBasicType
value
- aDBusType
-
DBusDictEntry
Constructs a new instance from another.- Parameters:
other
- aDBusDictEntry
-
-
Method Details
-
getType
Description copied from interface:DBusType
Gets the type of this implementation. -
getSignature
Description copied from interface:DBusContainerType
Gets the signature of this container type. The returned signature describes the container and its content.- Specified by:
getSignature
in interfaceDBusContainerType
- Returns:
- a
DBusSignature
-
getDelegate
Description copied from interface:DBusContainerType
Gets the wrapped value of this container type. The D-Bus type system is made of ASCII characters representing the value's type. Each D-Bus data type is mapped in this framework by its corresponding class. This method enables the access to the Java's data type - the delegate. If this container is for example aDBusArray
, the returned object will be aList
.- Specified by:
getDelegate
in interfaceDBusContainerType
- Returns:
- an
Object
-
getKey
-
getValue
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-