public final class MqttProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static MqttProperties |
NO_PROPERTIES |
| Constructor and Description |
|---|
MqttProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MqttProperty property) |
List<? extends MqttProperty> |
getProperties(int propertyId)
Get properties by ID.
|
MqttProperty |
getProperty(int propertyId)
Get property by ID.
|
MqttProperty |
getProperty(MqttPropertyType mqttPropertyType)
Get property by ID.
|
<T> T |
getPropertyValue(MqttPropertyType mqttPropertyType)
Get property by ID.
|
boolean |
isEmpty() |
Collection<? extends MqttProperty> |
listAll() |
static MqttProperties |
withEmptyDefaults(MqttProperties properties) |
public static final MqttProperties NO_PROPERTIES
public static MqttProperties withEmptyDefaults(MqttProperties properties)
public void add(MqttProperty property)
public Collection<? extends MqttProperty> listAll()
public boolean isEmpty()
public MqttProperty getProperty(int propertyId)
propertyId - ID of the propertypublic MqttProperty getProperty(MqttPropertyType mqttPropertyType)
mqttPropertyType - Type of the propertypublic <T> T getPropertyValue(MqttPropertyType mqttPropertyType)
T - 泛型标记mqttPropertyType - Type of the propertypublic List<? extends MqttProperty> getProperties(int propertyId)
propertyId - ID of the propertyCopyright © 2025. All rights reserved.