Home / Function/ firstKeyOrEntry() — netty Function Reference

firstKeyOrEntry() — netty Function Reference

Architecture documentation for the firstKeyOrEntry() function in ConcurrentSkipListIntObjMultimapTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  13d89a80_bc6d_1738_e814_6928a06dcbd1["firstKeyOrEntry()"]
  b8d62292_25db_2195_8bbe_2ebd67dc18b5["ConcurrentSkipListIntObjMultimapTest"]
  13d89a80_bc6d_1738_e814_6928a06dcbd1 -->|defined in| b8d62292_25db_2195_8bbe_2ebd67dc18b5
  style 13d89a80_bc6d_1738_e814_6928a06dcbd1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java lines 162–184

    @Test
    void firstKeyOrEntry() throws Exception {
        assertEquals(noKey, map.firstKey());
        assertNull(map.firstEntry());
        map.put(2, "b");
        assertEquals(2, map.firstKey());
        assertEquals(new IntEntry<>(2, "b"), map.firstEntry());
        map.put(3, "c");
        assertEquals(2, map.firstKey());
        assertEquals(new IntEntry<>(2, "b"), map.firstEntry());
        map.put(2, "b2");
        assertEquals(2, map.firstKey());
        assertThat(map.firstEntry()).isIn(new IntEntry<>(2, "b"), new IntEntry<>(2, "b2"));
        map.put(1, "a");
        assertEquals(1, map.firstKey());
        assertEquals(new IntEntry<>(1, "a"), map.firstEntry());
        map.put(2, "b3");
        assertEquals(1, map.firstKey());
        assertEquals(new IntEntry<>(1, "a"), map.firstEntry());
        map.pollFirstEntry();
        assertEquals(2, map.firstKey());
        assertThat(map.firstEntry()).isIn(new IntEntry<>(2, "b"), new IntEntry<>(2, "b2"), new IntEntry<>(2, "b3"));
    }

Domain

Subdomains

Frequently Asked Questions

What does firstKeyOrEntry() do?
firstKeyOrEntry() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java.
Where is firstKeyOrEntry() defined?
firstKeyOrEntry() is defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java at line 162.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free