Home / Function/ ceilEntryOrKey() — netty Function Reference

ceilEntryOrKey() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java lines 311–333

    @SuppressWarnings("unchecked")
    @RepeatedTest(100)
    void ceilEntryOrKey() {
        IntEntry<String>[] xs = new IntEntry[50];
        for (int i = 0; i < xs.length; i++) {
            int key = ThreadLocalRandom.current().nextInt(50);
            xs[i] = new IntEntry<>(key, String.valueOf(key));
            map.put(key, xs[i].getValue());
        }
        Arrays.sort(xs);
        for (int i = 0; i < 10; i++) {
            IntEntry<String> target = xs[ThreadLocalRandom.current().nextInt(xs.length)];
            IntEntry<String> expected = null;
            for (IntEntry<String> x : xs) {
                if (x.compareTo(target) >= 0) {
                    expected = x;
                    break;
                }
            }
            assertEquals(expected, map.ceilingEntry(target.getKey()));
            assertEquals(expected == null ? noKey : expected.getKey(), map.ceilingKey(target.getKey()));
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free