This is a bare minimal copy of fastutil
This only includes selective int and long collections, targeting the hashmaps.
Maven:
<repository>
<id>aikar</id>
<url>https://repo.aikar.co/content/groups/aikar/</url>
</repository>
Gradle:
maven {
name = "aikar"
url = "https://repo.aikar.co/content/groups/aikar/"
}
NOTE: v2 is NOT an upgrade from v1 in terms of features. It is a downgrade! v1 (below) contains more of the fastutil collection.
v2 strips out even more and provides them as individual artifacts so you only import what you need.
Only the Int/Long keyed Open Hash Maps are exposed (and the custom versions)
Group and version is the same for all
group: co.aikar
version: 2.0-SNAPSHOT
artifact: fastutil-base
artifact: fastutil-intbase
artifact: fastutil-intbase
Int2ObjectOpenHashMap: fastutil-inthashmap
Int2ObjectOpenCustomHashMap: fastutil-intcustomhashmap
Long2ObjectOpenHashMap: fastutil-longhashmap
Long2ObjectOpenCustomHashMap: fastutil-longcustomhashmap
You should have at least 3 artifacts, core
, intbase
or longbase
(or both), and then one or more of the desired collections.
<dependencies>
<dependency>
<groupId>co.aikar</groupId>
<artifactId>fastutil-base</artifactId>
<version>2.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>co.aikar</groupId>
<artifactId>fastutil-intbase</artifactId>
<version>2.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>co.aikar</groupId>
<artifactId>fastutil-longbase</artifactId>
<version>2.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
Relocating should not be necessary for this since ABI is unlikely to change. I am using snapshots until I feel the build is 'correct' and works, then it will go to a release.
for v1 of fastutil-lite that contains most of the int/long classes, use:
group: co.aikar
artifact: fastutil-lite
version: 1.0
fastutil is released under the Apache v2 license
fastutil-lite does not change the implementation details of fastutil.
At most, my changes have removed some methods to trim dependencies.