lowerEntryOrKey() — netty Function Reference
Architecture documentation for the lowerEntryOrKey() function in ConcurrentSkipListIntObjMultimapTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9a4369d1_de41_4b19_8c03_e6561f31fee6["lowerEntryOrKey()"] b8d62292_25db_2195_8bbe_2ebd67dc18b5["ConcurrentSkipListIntObjMultimapTest"] 9a4369d1_de41_4b19_8c03_e6561f31fee6 -->|defined in| b8d62292_25db_2195_8bbe_2ebd67dc18b5 style 9a4369d1_de41_4b19_8c03_e6561f31fee6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java lines 225–248
@SuppressWarnings("unchecked")
@RepeatedTest(100)
void lowerEntryOrKey() {
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;
} else {
break;
}
}
assertEquals(expected, map.lowerEntry(target.getKey()));
assertEquals(expected == null ? noKey : expected.getKey(), map.lowerKey(target.getKey()));
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does lowerEntryOrKey() do?
lowerEntryOrKey() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java.
Where is lowerEntryOrKey() defined?
lowerEntryOrKey() is defined in common/src/test/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimapTest.java at line 225.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free