firstLastKeyOrEntry() — netty Function Reference
Architecture documentation for the firstLastKeyOrEntry() function in ConcurrentSkipListIntObjMultimapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 03ef3dad_fcf2_690a_895d_557e12d50b5d["firstLastKeyOrEntry()"] b8d62292_25db_2195_8bbe_2ebd67dc18b5["ConcurrentSkipListIntObjMultimapTest"] 03ef3dad_fcf2_690a_895d_557e12d50b5d -->|defined in| b8d62292_25db_2195_8bbe_2ebd67dc18b5 style 03ef3dad_fcf2_690a_895d_557e12d50b5d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java lines 210–223
@RepeatedTest(100)
void firstLastKeyOrEntry() throws Exception {
int[] xs = new int[50];
for (int i = 0; i < xs.length; i++) {
int key = ThreadLocalRandom.current().nextInt(50);
map.put(key, "a");
xs[i] = key;
}
Arrays.sort(xs);
assertEquals(xs[0], map.firstKey());
assertEquals(new IntEntry<>(xs[0], "a"), map.firstEntry());
assertEquals(xs[xs.length - 1], map.lastKey());
assertEquals(new IntEntry<>(xs[xs.length - 1], "a"), map.lastEntry());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does firstLastKeyOrEntry() do?
firstLastKeyOrEntry() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java.
Where is firstLastKeyOrEntry() defined?
firstLastKeyOrEntry() is defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java at line 210.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free