Sets
![Javadocs](https://camo.githubusercontent.com/e529a75ef193dc32750b4964e9fa397bdbe1d8330afd130df23ca0c795e8576b/687474703a2f2f7777772e6a617661646f632e696f2f62616467652f636f6d2e6769746875622e6d6172736368616c6c2f736574732e737667)
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.Integer
s from 0 to 63, uses the same amount of memory for the entire set as a singlejava.lang.Long
. Also implementsjava.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.