testGetIfExists() — netty Function Reference
Architecture documentation for the testGetIfExists() function in FastThreadLocalTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 518631b2_9296_ce00_f225_6d5c9549b95f["testGetIfExists()"] c9cb652b_4141_8af2_1f8b_c47765bb30f9["FastThreadLocalTest"] 518631b2_9296_ce00_f225_6d5c9549b95f -->|defined in| c9cb652b_4141_8af2_1f8b_c47765bb30f9 style 518631b2_9296_ce00_f225_6d5c9549b95f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java lines 69–84
@Test
public void testGetIfExists() {
FastThreadLocal<Boolean> threadLocal = new FastThreadLocal<Boolean>() {
@Override
protected Boolean initialValue() {
return Boolean.TRUE;
}
};
assertNull(threadLocal.getIfExists());
assertTrue(threadLocal.get());
assertTrue(threadLocal.getIfExists());
FastThreadLocal.removeAll();
assertNull(threadLocal.getIfExists());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testGetIfExists() do?
testGetIfExists() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java.
Where is testGetIfExists() defined?
testGetIfExists() is defined in common/src/test/java/io/netty/util/concurrent/FastThreadLocalTest.java at line 69.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free