Mohammad Rezaei
Mohammad Rezaei
Oh, and in case it wasn't clear: 32 bit JDKs will give up long before (1
I disagree on "nice" part. A map that is forced beyond a reasonable load factor will behave very badly (although with the tree based stuff that was introduced into `HashMap`,...
Just to be clear, I don't believe the JDK `HashMap` is buggy until the size hits `Integer.MAX_VALUE + 1`. It can store the entries beyond `1
You might want to try this: https://stackoverflow.com/questions/44342455/more-than-one-file-was-found-with-os-independent-path-meta-inf-license We don't officially support Android, as it's not a standard Java execution environment (it has restrictions that are not part of the Java...
Do you want this for object references or primitives? Some initial reactions: - I think by "memory overhead", you meant "average wasted space". - The name is confusing. There is...
I don't believe this is a valid optimization because of the function involved. Here is an example function that will break if the code is changed: ``` int prev =...
@LuizFrra try it with the current code (no optimization) and see what ends up in the target.
The word "lambda" is borrowed from [lambda calculus](https://en.wikipedia.org/wiki/Lambda_calculus), not from Java's syntactical definition of a "lambda expression". It also fits the wikipedia definition of a [closure](https://en.wikipedia.org/wiki/Closure_(computer_programming)) fairly well: "Operationally, a...
Yes, in the general sense of lambda/closure, it is. See the wikipedia articles. lambda/closure has a long history far longer and richer than the meager implementation in Java.
Sure. It's also an example of a constant function; it's even explicitly mentioned in the lambda calculus article: "Further, ( λ x . y ) represents the constant function x...