Home / Function/ toMap() — netty Function Reference

toMap() — netty Function Reference

Architecture documentation for the toMap() function in DefaultChannelPipeline.java from the netty codebase.

Function java Buffer Search called by 1

Entity Profile

Dependency Diagram

graph TD
  5ed34241_bcd2_8f32_7119_ec540176bf39["toMap()"]
  12185bde_01b4_fad0_496c_1d27b952b797["DefaultChannelPipeline"]
  5ed34241_bcd2_8f32_7119_ec540176bf39 -->|defined in| 12185bde_01b4_fad0_496c_1d27b952b797
  31602fac_17a8_319d_f0a4_d6c619fbfca2["iterator()"]
  31602fac_17a8_319d_f0a4_d6c619fbfca2 -->|calls| 5ed34241_bcd2_8f32_7119_ec540176bf39
  style 5ed34241_bcd2_8f32_7119_ec540176bf39 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java lines 713–724

    @Override
    public final Map<String, ChannelHandler> toMap() {
        Map<String, ChannelHandler> map = new LinkedHashMap<String, ChannelHandler>();
        AbstractChannelHandlerContext ctx = head.next;
        for (;;) {
            if (ctx == tail) {
                return map;
            }
            map.put(ctx.name(), ctx.handler());
            ctx = ctx.next;
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does toMap() do?
toMap() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java.
Where is toMap() defined?
toMap() is defined in transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java at line 713.
What calls toMap()?
toMap() is called by 1 function(s): iterator.

Analyze Your Own Codebase

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

Try Supermodel Free