guava
guava copied to clipboard
Google core libraries for Java
Every now and then I'd like to check a variable for a _non-null_ value or otherwise provide a reasonable _non-null_ default value. Sometimes the second value is computed or should...
_[Original issue](https://code.google.com/p/guava-libraries/issues/detail?id=902) created by **[email protected]** on 2012-02-17 at 05:19 PM_ --- There are Multisets and Multimaps. Why not Multitables?
 I noticed RateLimiter recently and had a question in the ‘com.google.common.util.concurrent.RateLimiter#acquire(int)’ method。 What I want to ask is the performance issue of synchronized (mutex()) in reserve method. If there...
Given : ```java public interface MyType {} ``` ```java public interface SubType extends MyType {} ``` ```java public interface SubTypeInteger extends MyType {} ``` ```java public interface SubTypeBounded extends MyType...
This was shown in a recent [Java Collections Puzzlers](https://youtu.be/w6hhjg_gt_M?t=1380). The JavaDoc for `Map.putIfAbsent` states the following. > If the specified key is not already associated with a value (or is...
Removed the Beta annotations from HashingInputStream. This class have been in beta since versions 16.0.
See https://github.com/google/guava/pull/6243.
My employer’s codebase currently has 130 occurrences of this pattern: ```java ImmutableList.builder().addAll(items) ``` That pattern can be useful for appending items and/or collections. The need for an explicit type argument...
The descriptions of the GitHub releases on https://github.com/google/guava/releases seem to use `http://` URLs for Javadoc and JDiff links instead of `https://`. At least for the description of future releases it...
Add methods corresponding to the requirements in #3720 and tests