# guava-mini **Repository Path**: mirrors_davidmoten/guava-mini ## Basic Information - **Project Name**: guava-mini - **Description**: Optional, Preconditions, Objects, Lists, Sets classes taken from guava - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-10-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # guava-mini
[![Maven Central](https://maven-badges.sml.io/sonatype-central/com.github.davidmoten/guava-mini/badge.svg?style=flat)](https://maven-badges.sml.io/sonatype-central/com.github.davidmoten/guava-mini)
[![codecov](https://codecov.io/gh/davidmoten/guava-mini/branch/master/graph/badge.svg)](https://codecov.io/gh/davidmoten/guava-mini)
Some popular utilities from Guava repackaged (with different package names but same class names and method names) into a little jar (15K) available on Maven Central. Compatible with java 8 and later. Status: *on Maven Central* Maven site reports are [here](http://davidmoten.github.io/guava-mini/index.html) including [javadoc](http://davidmoten.github.io/guava-mini/apidocs/index.html). Features ----------- Taken from Guava: * `Optional` * `Objects`: `equal`, `hashCode` * `Preconditions`:`checkNotNull`, `checkArgument` * `Lists`: `newArrayList` * `Sets`: `newHashSet` Non-guava: * `Maps`: `hashMap`, `treeMap`, `linkedHashMap` ```java Map map = Maps.put(1, "hi").put(2, "there").build(); Map sorted = Maps.treeMap().put(1, "hi").put(2, "there").build(); Map linked = Maps.linkedHashMap().put(1, "hi").put(2, "there").build(); Map presized = Maps.hashMap().initialSize(1000).put(1, "hi").put(2, "there").build(); ``` Getting started ------------------ Add this dependency to your pom.xml: ```xml com.github.davidmoten guava-mini VERSION_HERE ```