Tobias Meggendorfer
Tobias Meggendorfer
Update: 4 is wrong, this is due to my local dns resolver returning the ULA first, adding `dns: 9.9.9.9` as option fixes this. The other issues remain though.
> We would then have a BasicPair implementation with the two obvious fields. Or maybe a MutablePair and an ImmutablePair implementations—they might come handy. What do you think? I think...
Just some questions: * What is `floorKey()`? Should be `floorKey(K key)`, right? Anyway, this shouldn't be that hard to implement I guess, especially since there are straightforward "default" implementations. Feel...
What I was asking is a semantic description of `floorMap()` / `floorMap(K key)`. * I am guessing that this is supposed to be equivalent to `headMap(floorKey(toKey))`? * Or is `map.floorMap().get(k)`...
I still don't know what `floorMap` is even supposed to do :-) We can't implement functionality which is not specified.
What about `NoSuchElementException`? This would nicely apply to all the relevant methods. For `pollFirst` and `pollLast` one can easily check whether the exception would be thrown, for the other methods...
> First, it's inconsistent with the object versions, which return null. Well, depending on how you look at it. `ceiling(Long).longValue()` also throws an exception when there is no such value....
The difference between fully synchronizing the map and having a concurrent map is (as far as I know) that the synchronized map usually gives a stronger atomicity than required. A...
The problem here is the parameter space explosion. Having type-specific BiFunctions is totally possible, but would require `8*8*8 = 512` additional classes (or maybe even `9*9*9`). Moreover, this would require...
One note: I think using `...AsInt` as suffix is a bit more in line with JDK convention than `...Fast`. For `computeIfAbsentFast` I'd rather say `computeAsIntIfAbsent` or `computeIfAbsentAsInt` (replacing `Int` with...