Guava: Preconditions
Only the Preconditions class from Google Guava version 19.
Download
The distribution is hosted on Bintray. To include the package in your projects, you can add the jCenter repository.
Gradle
Add jCenter to your repositories
block (not necessary for Android - jCenter is the default repository):
repositories {
jcenter()
}
and add the project to the dependencies
block in your build.gradle
:
dependencies {
compile 'com.cookingfox:guava-preconditions:0.1.5'
}
Maven
Add jCenter to your repositories in pom.xml
or settings.xml
:
<repositories>
<repository>
<id>jcenter</id>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
and add the project to the dependencies
block in your pom.xml
:
<dependency>
<groupId>com.cookingfox</groupId>
<artifactId>guava-preconditions</artifactId>
<version>0.1.5</version>
</dependency>