Class MqttProperties.UserProperties
java.lang.Object
io.netty.handler.codec.mqtt.MqttProperties.MqttProperty<java.util.List<MqttProperties.StringPair>>
io.netty.handler.codec.mqtt.MqttProperties.UserProperties
- Enclosing class:
MqttProperties
public static final class MqttProperties.UserProperties
extends MqttProperties.MqttProperty<java.util.List<MqttProperties.StringPair>>
-
Field Summary
Fields inherited from class MqttProperties.MqttProperty
propertyId, value -
Constructor Summary
ConstructorsConstructorDescriptionUserProperties(java.util.Collection<MqttProperties.StringPair> values) Create user properties from the collection of the String pair values -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(MqttProperties.StringPair pair) voidadd(java.lang.String key, java.lang.String value) private static MqttProperties.UserPropertiesfromUserPropertyCollection(java.util.Collection<MqttProperties.UserProperty> properties) java.lang.StringtoString()Methods inherited from class MqttProperties.MqttProperty
equals, hashCode, propertyId, valueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
UserProperties
public UserProperties() -
UserProperties
Create user properties from the collection of the String pair values- Parameters:
values- string pairs. Collection entries are copied, collection itself isn't shared
-
-
Method Details
-
fromUserPropertyCollection
private static MqttProperties.UserProperties fromUserPropertyCollection(java.util.Collection<MqttProperties.UserProperty> properties) -
add
-
add
public void add(java.lang.String key, java.lang.String value) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-