Com google common base Stopwatch jar
Guava: Google Core Libraries for Java Show Guava is a set of core Java libraries from Google that includes new collection types (such as multimap and multiset), immutable collections, a graph library, and utilities for concurrency, I/O, hashing, caching, primitives, strings, and more! It is widely used on most Java projects within Google, and widely used by many other companies as well. Guava comes in two flavors:
Adding Guava to your buildGuava's Maven group ID is com.google.guava, and its artifact ID is guava. Guava provides two different "flavors": one for use on a (Java 8+) JRE and one for use on Android or by any library that wants to be compatible with Android. These flavors are specified in the Maven version field as either 31.0.1-jre or 31.0.1-android. For more about depending on Guava, see using Guava in your build. To add a dependency on Guava using Maven, use the following: <dependency>
<groupId>com.google.guavagroupId>
<artifactId>guavaartifactId>
<version>31.0.1-jreversion>
<version>31.0.1-androidversion>
dependency>
To add a dependency using Gradle: dependencies {
// Pick one:
// 1. Use Guava in your implementation only:
implementation("com.google.guava:guava:31.0.1-jre")
// 2. Use Guava types in your public API:
api("com.google.guava:guava:31.0.1-jre")
// 3. Android - Use Guava in your implementation only:
implementation("com.google.guava:guava:31.0.1-android")
// 4. Android - Use Guava types in your public API:
api("com.google.guava:guava:31.0.1-android")
}
For more information on when to use api and when to use implementation, consult the Gradle documentation on API and implementation separation. Snapshots and DocumentationSnapshots of Guava built from the master branch are available through Maven using version HEAD-jre-SNAPSHOT, or HEAD-android-SNAPSHOT for the Android flavor.
Learn about Guava
Links
IMPORTANT WARNINGS
|