Home / Function/ getProperties() — netty Function Reference

getProperties() — netty Function Reference

Architecture documentation for the getProperties() function in MqttProperties.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c9c04203_fd0f_0702_a170_0390ec874690["getProperties()"]
  b94e5449_132b_7007_b936_295b901f2ffe["MqttProperties"]
  c9c04203_fd0f_0702_a170_0390ec874690 -->|defined in| b94e5449_132b_7007_b936_295b901f2ffe
  style c9c04203_fd0f_0702_a170_0390ec874690 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java lines 442–453

    public List<? extends MqttProperty> getProperties(int propertyId) {
        if (propertyId == USER_PROPERTY) {
            return userProperties == null ? Collections.emptyList() : userProperties;
        }
        if (propertyId == SUBSCRIPTION_IDENTIFIER) {
            return subscriptionIds == null ? Collections.emptyList() : subscriptionIds;
        }
        IntObjectHashMap<MqttProperty> props = this.props;
        return (props == null || !props.containsKey(propertyId)) ?
                Collections.emptyList() :
                Collections.singletonList(props.get(propertyId));
    }

Domain

Subdomains

Frequently Asked Questions

What does getProperties() do?
getProperties() is a function in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java.
Where is getProperties() defined?
getProperties() is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java at line 442.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free