toMapWithSingleValue() — netty Function Reference
Architecture documentation for the toMapWithSingleValue() function in HostsFileParser.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a7dc7301_b3c7_b273_38e7_403df1f76de9["toMapWithSingleValue()"] 21e04ee1_be05_b6bd_5b73_5df1cf450e31["HostsFileParser"] a7dc7301_b3c7_b273_38e7_403df1f76de9 -->|defined in| 21e04ee1_be05_b6bd_5b73_5df1cf450e31 e387074f_9eb5_21de_319c_a63b485cac51["HostsFileEntries()"] e387074f_9eb5_21de_319c_a63b485cac51 -->|calls| a7dc7301_b3c7_b273_38e7_403df1f76de9 style a7dc7301_b3c7_b273_38e7_403df1f76de9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
resolver/src/main/java/io/netty/resolver/HostsFileParser.java lines 113–122
private static Map<String, ?> toMapWithSingleValue(Map<String, List<InetAddress>> fromMapWithListValue) {
Map<String, InetAddress> result = new HashMap<String, InetAddress>(fromMapWithListValue.size());
for (Map.Entry<String, List<InetAddress>> entry : fromMapWithListValue.entrySet()) {
List<InetAddress> value = entry.getValue();
if (!value.isEmpty()) {
result.put(entry.getKey(), value.get(0));
}
}
return result;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does toMapWithSingleValue() do?
toMapWithSingleValue() is a function in the netty codebase, defined in resolver/src/main/java/io/netty/resolver/HostsFileParser.java.
Where is toMapWithSingleValue() defined?
toMapWithSingleValue() is defined in resolver/src/main/java/io/netty/resolver/HostsFileParser.java at line 113.
What calls toMapWithSingleValue()?
toMapWithSingleValue() is called by 1 function(s): HostsFileEntries.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free