Sets

Special purpose implementations of java.util.Set

License

License

MIT
GroupId

GroupId

com.github.marschall
ArtifactId

ArtifactId

sets
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Sets
Special purpose implementations of java.util.Set
Project URL

Project URL

https://github.com/marschall/sets
Source Code Management

Source Code Management

https://github.com/marschall/sets

Download sets

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.marschall/sets/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>sets</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/sets/
implementation 'com.github.marschall:sets:1.1.0'
// https://jarcasting.com/artifacts/com.github.marschall/sets/
implementation ("com.github.marschall:sets:1.1.0")
'com.github.marschall:sets:jar:1.1.0'
<dependency org="com.github.marschall" name="sets" rev="1.1.0">
  <artifact name="sets" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='sets', version='1.1.0')
)
libraryDependencies += "com.github.marschall" % "sets" % "1.1.0"
[com.github.marschall/sets "1.1.0"]

Dependencies

test (6)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.0.0
org.junit.jupiter : junit-jupiter-engine jar 5.0.0
org.junit.platform : junit-platform-launcher jar 1.0.0
org.hamcrest : hamcrest-junit jar 2.0.0.0
org.openjdk.jmh : jmh-core jar 1.19
org.openjdk.jmh : jmh-generator-annprocess jar 1.19

Project Modules

There are no modules declared in this project.

Sets Build Status Maven Central Javadocs

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.

Versions

Version
1.1.0
1.0.2
1.0.1
1.0.0