com.ibm.streamsx.iot

Class Device

  • java.lang.Object
    • com.ibm.streamsx.iot.Device
  • All Implemented Interfaces:
    com.ibm.streamsx.topology.tuple.JSONAble, java.io.Serializable


    public class Device
    extends java.lang.Object
    implements com.ibm.streamsx.topology.tuple.JSONAble, java.io.Serializable
    A device.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Device(java.lang.String typeId, java.lang.String id) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      java.lang.String getId()
      Get the device identifier.
      java.lang.String getTypeId()
      Get the device type identifier.
      int hashCode() 
      com.ibm.json.java.JSONObject toJSON() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Device

        public Device(java.lang.String typeId,
                      java.lang.String id)
    • Method Detail

      • getTypeId

        public java.lang.String getTypeId()
        Get the device type identifier.
        Returns:
        device type identifier.
      • getId

        public java.lang.String getId()
        Get the device identifier.
        Returns:
        device identifier.
      • toJSON

        public com.ibm.json.java.JSONObject toJSON()
        Specified by:
        toJSON in interface com.ibm.streamsx.topology.tuple.JSONAble
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
streamsx.iot @ IBMStreams GitHub