Peter Burka

Results 6 comments of Peter Burka

Agreed. Without the NavigableMap interface it's not of much use to me. I'll see if I can make some progress on that.

I started working on this today by prototyping a NavigableSet template for fastutil. I ran into one complication: a number of NavigableSet methods can return null to indicate absence (e.g....

I've prototyped NavigableSet, NavigableMap, and some helpers in NavigableSets in a fork of the repository at https://github.com/pburka/fastutil/tree/master/ I chose to append 'OrDefault' to each of the APIs which could return...

I'm not sold on throwing `NoSuchElementException`. First, it's inconsistent with the object versions, which return null. Secondly, it's inefficient. Either you need to probe the map twice (once to check...

I've hit problems with `isJava1()` before so I have a unit test in my library that explicitly checks that it returns false! I didn't realize that it's no longer being...

OptionalInt, OptionalLong and OptionalDouble are already included in the JDK (since Java 8). Peter On Fri, Dec 20, 2024, 6:50 PM mudkip ***@***.***> wrote: > There would be OptionalInt, OptionalBoolean,...