guava
guava copied to clipboard
Google core libraries for Java
RateLimiter has been around since version 13 and it is stilled marked as @Beta
I have been working on a Test Library that basically adds support for Primitive Variants of Guavas Test Lib. And some of my implementations require to change how iterators are...
I just found out that `CharMatcher.retainFrom(CharSequence)`, while having a very simple implementation, is not tested at all in the whole codebase.
BloomFilter size keeps increasing when serializing and deserializing with kryo ? Below is the relevant code ``` import com.esotericsoftware.kryo.kryo5.Kryo; import com.esotericsoftware.kryo.kryo5.io.Input; import com.esotericsoftware.kryo.kryo5.io.Output; import com.esotericsoftware.kryo.kryo5.objenesis.strategy.StdInstantiatorStrategy; import com.esotericsoftware.kryo.kryo5.util.DefaultInstantiatorStrategy; import com.esotericsoftware.kryo.kryo5.util.Pool; import...
Even if CollectionSize.ZERO is specified, SortedMapTestSuiteBuilder calls `create(Object... elements)` with elements having a length different from zero during initialization phase (ie. not during test running phase) - thus preventing all...
Change access modifier to public for ``` private static final String APPLICATION_TYPE = "application"; private static final String AUDIO_TYPE = "audio"; private static final String IMAGE_TYPE = "image"; private static...
I've found the binarySearch functionality in the com.google.common.collect.SortedLists to be quite useful. However the package private access precludes it from being used. I've ended up copying the code to another...
Pull request to the following issue: #5888 ```java ImmutableMultimap.Builder#build ```  ```java ImmutableMultimap#copyOf ```  ```java ImmutableMultimap#of```  Happy to apply any suggestions to improve the javadoc.
Exponential BackOff is a generic use for retry mechanism with backoff and jitter, and commonly used and needed in several applications for multiple different purposes, like failure handling. Currently, there...
Fixes #3501 However, there is still a problem in this method. If `this.offset + this.length > Long.MAX_VALUE`, it will overflow. These are 4 possible approaches: 1. Leave is as it...