lastKeyOrEntry() — netty Function Reference
Architecture documentation for the lastKeyOrEntry() function in ConcurrentSkipListIntObjMultimapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2e5dcdc7_b152_3c33_f7d4_0619b35688fe["lastKeyOrEntry()"] b8d62292_25db_2195_8bbe_2ebd67dc18b5["ConcurrentSkipListIntObjMultimapTest"] 2e5dcdc7_b152_3c33_f7d4_0619b35688fe -->|defined in| b8d62292_25db_2195_8bbe_2ebd67dc18b5 style 2e5dcdc7_b152_3c33_f7d4_0619b35688fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java lines 186–208
@Test
void lastKeyOrEntry() throws Exception {
assertEquals(noKey, map.lastKey());
assertNull(map.lastEntry());
map.put(2, "b");
assertEquals(2, map.lastKey());
assertEquals(new IntEntry<>(2, "b"), map.lastEntry());
map.put(1, "a");
assertEquals(2, map.lastKey());
assertEquals(new IntEntry<>(2, "b"), map.lastEntry());
map.put(2, "b2");
assertEquals(2, map.lastKey());
assertThat(map.lastEntry()).isIn(new IntEntry<>(2, "b"), new IntEntry<>(2, "b2"));
map.put(3, "c");
assertEquals(3, map.lastKey());
assertEquals(new IntEntry<>(3, "c"), map.lastEntry());
map.put(2, "b3");
assertEquals(3, map.lastKey());
assertEquals(new IntEntry<>(3, "c"), map.lastEntry());
map.pollLastEntry();
assertEquals(2, map.lastKey());
assertThat(map.lastEntry()).isIn(new IntEntry<>(2, "b"), new IntEntry<>(2, "b2"), new IntEntry<>(2, "b3"));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does lastKeyOrEntry() do?
lastKeyOrEntry() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java.
Where is lastKeyOrEntry() defined?
lastKeyOrEntry() is defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java at line 186.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free