containsAny() — netty Function Reference
Architecture documentation for the containsAny() function in DefaultHeaders.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 70e28c51_c0c1_3353_d494_cc46482ebd12["containsAny()"] 4870289d_b6ea_5d75_937a_7b31d015d4bf["DefaultHeaders"] 70e28c51_c0c1_3353_d494_cc46482ebd12 -->|defined in| 4870289d_b6ea_5d75_937a_7b31d015d4bf 8163871a_da62_e92d_77c4_af47970b5607["index()"] 70e28c51_c0c1_3353_d494_cc46482ebd12 -->|calls| 8163871a_da62_e92d_77c4_af47970b5607 401dfa93_5a66_78af_4cc8_8c0eae8a020d["hashCode()"] 70e28c51_c0c1_3353_d494_cc46482ebd12 -->|calls| 401dfa93_5a66_78af_4cc8_8c0eae8a020d c15922d5_d4f0_6f67_a606_f7cf7f884edc["equals()"] 70e28c51_c0c1_3353_d494_cc46482ebd12 -->|calls| c15922d5_d4f0_6f67_a606_f7cf7f884edc style 70e28c51_c0c1_3353_d494_cc46482ebd12 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/main/java/io/netty/handler/codec/DefaultHeaders.java lines 163–176
public boolean containsAny(K name, V predicateArg, BiPredicate<? super V, ? super V> valuePredicate) {
checkNotNull(name, "name");
checkNotNull(valuePredicate, "valuePredicate");
int h = hashingStrategy.hashCode(name);
int i = index(h);
HeaderEntry<K, V> e = entries[i];
while (e != null) {
if (e.hash == h && hashingStrategy.equals(name, e.key) && valuePredicate.test(e.value, predicateArg)) {
return true;
}
e = e.next;
}
return false;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does containsAny() do?
containsAny() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/DefaultHeaders.java.
Where is containsAny() defined?
containsAny() is defined in codec-base/src/main/java/io/netty/handler/codec/DefaultHeaders.java at line 163.
What does containsAny() call?
containsAny() calls 3 function(s): equals, hashCode, index.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free