> > On March 14, 2022 at 10:19:14 AM CDT, Matt Juntunen > <matt.a.juntu...@gmail.com (mailto:matt.a.juntu...@gmail.com)> wrote: > > > I'm a little bit confused: Isn't it always the case that > getEntry(p).getKey() > will return the originally inserted (i.e. "canonical") point (i.e. not "p")? > > Map does not contain a "getEntry" method. If it did, that would indeed > be preferable.
Would Java’s Map.entrySet provide the “getEntry” type method needed? https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#entrySet-- Or would this provide all entry’s and still need to find the specific entry so maybe a forEach variation to filter for a specific entry? https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#forEach-java.util.function.BiConsumer- > > Unless I'm missing a standard use-case, the specialized methods > "closestFirst" and "farthestFirst" don't seem useful (and wasteful > of computing resources: If iterating over the whole set, why would > one want to start from some particular point?). Eric Bresie ebre...@gmail.com >