Home / Class/ CompositeMatcher Class — netty Architecture

CompositeMatcher Class — netty Architecture

Architecture documentation for the CompositeMatcher class in ChannelMatchers.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f8a5dc0a_547e_cfc0_9714_7aab54298328["CompositeMatcher"]
  e9f5da97_a9fa_935b_2c56_fa4994ef23e0["ChannelMatchers.java"]
  f8a5dc0a_547e_cfc0_9714_7aab54298328 -->|defined in| e9f5da97_a9fa_935b_2c56_fa4994ef23e0
  bffd7977_a325_c2c2_08ff_36f6d900807f["CompositeMatcher()"]
  f8a5dc0a_547e_cfc0_9714_7aab54298328 -->|method| bffd7977_a325_c2c2_08ff_36f6d900807f
  968a6a11_eccc_3ba8_4a5c_67f19d598283["matches()"]
  f8a5dc0a_547e_cfc0_9714_7aab54298328 -->|method| 968a6a11_eccc_3ba8_4a5c_67f19d598283

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/group/ChannelMatchers.java lines 113–129

    private static final class CompositeMatcher implements ChannelMatcher {
        private final ChannelMatcher[] matchers;

        CompositeMatcher(ChannelMatcher... matchers) {
            this.matchers = matchers;
        }

        @Override
        public boolean matches(Channel channel) {
            for (ChannelMatcher m: matchers) {
                if (!m.matches(channel)) {
                    return false;
                }
            }
            return true;
        }
    }

Frequently Asked Questions

What is the CompositeMatcher class?
CompositeMatcher is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/group/ChannelMatchers.java.
Where is CompositeMatcher defined?
CompositeMatcher is defined in transport/src/main/java/io/netty/channel/group/ChannelMatchers.java at line 113.

Analyze Your Own Codebase

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

Try Supermodel Free