guava
guava copied to clipboard
Google core libraries for Java
e.g., https://guava.dev/BiMap has blank descriptions for `put`, `putAll`, and `values`, and it has no links for types like `java.lang.Object` and `java.util.Map`
Probably not soon :) I just had another note I wanted to make about this, so now seems like the time to start collecting those notes. - Since we're a...
I recently found myself writing this code. ```java MutableGraph graph = GraphBuilder.undirected().build(); graph.addNode(1); Set adjacentNodesView = graph.adjacentNodes(1); System.out.println(graph.edges()); // [] System.out.println(adjacentNodesView); // [] System.out.println(graph.adjacentNodes(1)); // [] graph.putEdge(1, 2); System.out.println(graph.edges()); //...
Hello, if one future fails in a combined future a large message with stacktrace is spit out via java.util.logging. This is inconvenient. ``` Aug 17, 2015 7:12:44 PM com.google.common.util.concurrent.Futures$CombinedFuture setExceptionAndMaybeLog...
I would like to use Striped with fair=true, I checked code and seems in current 19.0 version there is no way to do it.
In the `ImmutableRangeSet.Builder` source code we have this comment: https://github.com/google/guava/blob/ce73003d8420a091fd36ca2c7c23deb6437e4fe1/guava/src/com/google/common/collect/ImmutableRangeSet.java#L725 That sounds like a neat improvement onto itself. But the `ImmutableRangeSet` collector introduced in #2750 is also defined in terms...
If you have a CacheLoader with loadAll implemented in use with a LoadingCache that is configured to refreshAfterWrite, calls to getAll load each item individually rather than falling back to...
Declare dependency versions inline instead of in our parent pom. Fixes https://github.com/google/guava/issues/6654, I hope? If `guava` and its parent pom don't refer to `mockito-core`, then `guava` should no longer affect...
So that projects depend on this can be published to a public artifact repository. Note that this is not breaking backward compatibility. All codes except this file can be still...
Consider avoiding the use of a pre-sized builder for the `FilteredCollection` in `Maps#uniqueIndex`
If values is a `Collection`, a presized builder is used in [Maps#uniqueIndex](https://github.com/google/guava/blob/74859ebe9b2ea79d32b1f3da04dbc494a51f9432/guava/src/com/google/common/collect/Maps.java#L1326) (the change was introduced in this [commit](https://github.com/google/guava/commit/101dc3ea704d58a4ee172e40a73f40e5fb3cabe8)) ```Java @CanIgnoreReturnValue public static ImmutableMap uniqueIndex( Iterable values, Function