Tagged articles

RangeMap

3 articles · Page 1 of 1
Programmer1970
Programmer1970
Sep 21, 2024 · Fundamentals

Boost Coding Efficiency with Google Guava’s RangeMap: Mastering Interval Mapping

The article explains Google Guava’s RangeMap—a map that links non‑overlapping ranges to values—detailing its core features, typical use cases such as retry mechanisms and tiered pricing, and provides step‑by‑step Java code examples that show insertion, querying, overlapping handling, sub‑range views, and removal.

Data StructuresGoogle GuavaInterval Mapping
0 likes · 9 min read
Boost Coding Efficiency with Google Guava’s RangeMap: Mastering Interval Mapping
Su San Talks Tech
Su San Talks Tech
Mar 28, 2023 · Backend Development

Unlock Powerful Map Operations with Guava: Table, BiMap, Multimap, RangeMap & More

This guide explores Guava's extended map utilities—including Table for two‑key maps, BiMap for bidirectional lookups, Multimap for multi‑value mappings, RangeMap for interval‑based keys, and ClassToInstanceMap for type‑safe instance storage—providing code examples, usage tips, and common pitfalls for Java developers.

BiMapGuavaJava
0 likes · 16 min read
Unlock Powerful Map Operations with Guava: Table, BiMap, Multimap, RangeMap & More