dedup() — netty Function Reference
Architecture documentation for the dedup() function in ServerCookieEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 30cc30c8_0e92_145c_66cc_1c3bfee9e258["dedup()"] 777f44fa_8615_2d3d_259b_3c21462736d3["ServerCookieEncoder"] 30cc30c8_0e92_145c_66cc_1c3bfee9e258 -->|defined in| 777f44fa_8615_2d3d_259b_3c21462736d3 804d6d90_280a_5fb6_57a6_d8095c768928["encode()"] 804d6d90_280a_5fb6_57a6_d8095c768928 -->|calls| 30cc30c8_0e92_145c_66cc_1c3bfee9e258 style 30cc30c8_0e92_145c_66cc_1c3bfee9e258 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/cookie/ServerCookieEncoder.java lines 146–158
private static List<String> dedup(List<String> encoded, Map<String, Integer> nameToLastIndex) {
boolean[] isLastInstance = new boolean[encoded.size()];
for (int idx : nameToLastIndex.values()) {
isLastInstance[idx] = true;
}
List<String> dedupd = new ArrayList<String>(nameToLastIndex.size());
for (int i = 0, n = encoded.size(); i < n; i++) {
if (isLastInstance[i]) {
dedupd.add(encoded.get(i));
}
}
return dedupd;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does dedup() do?
dedup() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/cookie/ServerCookieEncoder.java.
Where is dedup() defined?
dedup() is defined in codec-http/src/main/java/io/netty/handler/codec/http/cookie/ServerCookieEncoder.java at line 146.
What calls dedup()?
dedup() is called by 1 function(s): encode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free