Home / Function/ matches() — netty Function Reference

matches() — netty Function Reference

Architecture documentation for the matches() function in IpSubnetFilterRule.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  53ff307f_4e59_bb83_2a45_0922d99d7721["matches()"]
  a1c6509b_4e14_64de_a61c_a7f2fad1afd0["Ip6SubnetFilterRule"]
  53ff307f_4e59_bb83_2a45_0922d99d7721 -->|defined in| a1c6509b_4e14_64de_a61c_a7f2fad1afd0
  ec366950_3e90_b539_9c00_ab6de6f6b6e4["matches()"]
  53ff307f_4e59_bb83_2a45_0922d99d7721 -->|calls| ec366950_3e90_b539_9c00_ab6de6f6b6e4
  style 53ff307f_4e59_bb83_2a45_0922d99d7721 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java lines 229–237

        @Override
        public boolean matches(InetSocketAddress remoteAddress) {
            final InetAddress inetAddress = remoteAddress.getAddress();
            if (inetAddress instanceof Inet6Address) {
                BigInteger ipAddress = ipToInt((Inet6Address) inetAddress);
                return ipAddress.and(subnetMask).equals(subnetMask) || ipAddress.and(subnetMask).equals(networkAddress);
            }
            return false;
        }

Domain

Subdomains

Calls

Frequently Asked Questions

What does matches() do?
matches() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java.
Where is matches() defined?
matches() is defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java at line 229.
What does matches() call?
matches() calls 1 function(s): matches.

Analyze Your Own Codebase

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

Try Supermodel Free