Class UserProperty


  • public class UserProperty
    extends java.lang.Object
    A simple key-value pair struct to define a user property. A user property is a name-value pair of utf-8 strings that can be added to MQTT5 packets.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String key  
      java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      UserProperty​(java.lang.String key, java.lang.String value)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • key

        public final java.lang.String key
      • value

        public final java.lang.String value
    • Constructor Detail

      • UserProperty

        public UserProperty​(java.lang.String key,
                            java.lang.String value)