An open API service indexing awesome lists of open source software.

https://github.com/marschall/sets

Special purpose implementations of java.util.Set
https://github.com/marschall/sets

Last synced: 3 months ago
JSON representation

Special purpose implementations of java.util.Set

Awesome Lists containing this project

README

        

Sets [![Build Status](https://travis-ci.org/marschall/sets.svg?branch=master)](https://travis-ci.org/marschall/sets) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/sets/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/sets) [![Javadocs](http://www.javadoc.io/badge/com.github.marschall/sets.svg)](http://www.javadoc.io/doc/com.github.marschall/sets)
====

Special purpose implementations of `java.util.Set` that in the right niche use case can be much more efficient than implementations shipped with the JDK.

The implementations support serialization but this has not been optimized.

Currently includes classes:


SmallIntegerSet

Supports java.lang.Integers from 0 to 63, uses the same amount of memory for the entire set as a single java.lang.Long. Also implements java.util.SortedSet.

All methods are below 325 byte and should therefore HotSpot should be able to inline them if they are hot.

None of the sets or iterators are fail-fast.