Package com.lucimber.dbus.type
Class DBusInt16
java.lang.Object
java.lang.Number
com.lucimber.dbus.type.DBusInt16
- All Implemented Interfaces:
DBusBasicType
,DBusType
,Serializable
,Comparable<DBusInt16>
Maps a
Short
to its D-Bus equivalent of INT16.- See Also:
-
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Method Details
-
valueOf
Constructs a new D-Bus INT16 from its Java counterpart.- Parameters:
value
- the short value- Returns:
- a new instance
-
getType
Description copied from interface:DBusType
Gets the type of this implementation. -
getDelegate
Description copied from interface:DBusBasicType
Gets the wrapped value of this basic 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 basic type is for example aDBusBoolean
, the returned object will be aBoolean
.- Specified by:
getDelegate
in interfaceDBusBasicType
- Returns:
- an
Object
-
equals
-
hashCode
public int hashCode() -
toString
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
compareTo
- Specified by:
compareTo
in interfaceComparable<DBusInt16>
-