Home / Function/ V() — netty Function Reference

V() — netty Function Reference

Architecture documentation for the V() function in DomainWildcardMappingBuilder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3dbdfbfa_85e8_6086_2783_ed1a8d86ce53["V()"]
  1b688622_d3ad_614c_6e06_5e6f7bf6585c["ImmutableDomainWildcardMapping"]
  3dbdfbfa_85e8_6086_2783_ed1a8d86ce53 -->|defined in| 1b688622_d3ad_614c_6e06_5e6f7bf6585c
  style 3dbdfbfa_85e8_6086_2783_ed1a8d86ce53 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/DomainWildcardMappingBuilder.java lines 114–136

        @Override
        public V map(String hostname) {
            if (hostname != null) {
                hostname = normalize(hostname);

                // Let's try an exact match first
                V value = map.get(hostname);
                if (value != null) {
                    return value;
                }

                // No exact match, let's try a wildcard match.
                int idx = hostname.indexOf('.');
                if (idx != -1) {
                    value = map.get(hostname.substring(idx));
                    if (value != null) {
                        return value;
                    }
                }
            }

            return defaultValue;
        }

Domain

Subdomains

Frequently Asked Questions

What does V() do?
V() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/DomainWildcardMappingBuilder.java.
Where is V() defined?
V() is defined in common/src/main/java/io/netty/util/DomainWildcardMappingBuilder.java at line 114.

Analyze Your Own Codebase

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

Try Supermodel Free