Project icon

com.io7m.jranges

Build status Maven Central Codecov

The jranges package implements a set of functions and types for dealing with ranges and intervals.

Contents

Features

  • Immutable range types, for specifying ranges over all the available integral and floating point types.
  • Functions for checking that values fall within given ranges.
  • Full unit test coverage.
  • OSGi-ready
  • JPMS-ready
  • ISC license.

Releases

The most recently published version of the software is 6.0.0.

Source code and binaries are available from the repository.

Documentation

Documentation for the 6.0.0 release is available for reading online.

Documentation for current and older releases is archived in the repository.

User documentation

See the README.

Maven

The following is a complete list of the project's modules expressed as Maven dependencies:

<dependency>
  <groupId>com.io7m.jranges</groupId>
  <artifactId>com.io7m.jranges</artifactId>
  <version>6.0.0</version>
</dependency>

<dependency>
  <groupId>com.io7m.jranges</groupId>
  <artifactId>com.io7m.jranges.core</artifactId>
  <version>6.0.0</version>
</dependency>

<dependency>
  <groupId>com.io7m.jranges</groupId>
  <artifactId>com.io7m.jranges.tests</artifactId>
  <version>6.0.0</version>
</dependency>

Each release of the project is made available on Maven Central within ten minutes of the release announcement.

Changes

Subscribe to the releases atom feed.

2024-05-11 Release: com.io7m.jranges 6.0.0
2024-04-19 Change: Update org.junit.jupiter:junit-jupiter-api:5.10.1 → 5.10.2.
2024-04-19 Change: Update org.junit.jupiter:junit-jupiter-engine:5.10.1 → 5.10.2.
2024-04-19 Change: Update nl.jqno.equalsverifier:equalsverifier:3.15.5 → 3.16.1.
2024-04-19 Change: Update org.immutables:value:2.10.0 → 2.10.1.
2024-04-19 Change: Update net.jqwik:jqwik:1.8.2 → 1.8.4.
2024-05-11 Change: Move to new organization.
2024-05-11 Change: (Backwards incompatible) Require JDK 21.
2022-04-09 Release: com.io7m.jranges 5.0.0
2022-04-09 Change: (Backwards incompatible) Require JDK 17
2019-03-01 Release: com.io7m.jranges 4.0.0
2019-03-01 Change: Add half-open ranges (tickets: 3 )
2019-03-01 Change: (Backwards incompatible) Require JDK 11
2017-11-15 Release: com.io7m.jranges 3.0.0
2017-11-15 Change: (Backwards incompatible) Replace implementation with Immutables.org generated types
2017-11-15 Change: (Backwards incompatible) All modules are now Java 9 modules. JDK 9 is now required.
2017-11-15 Change: (Backwards incompatible) Removed dependency on com.io7m.jnull.
2017-11-15 Change: (Backwards incompatible) Removed dependency on com.io7m.jequality.
2017-04-06 Release: com.io7m.jranges 2.0.4
2017-04-06 Change: Use primogenitor, renaming all modules to the new OSGi conventions.
2016-08-04 Release: com.io7m.jranges 2.0.3
2016-08-04 Change: Switch to using com.io7m.jcip bundle to fix the produced OSGi bundle. (tickets: 1 )
2016-08-03 Release: com.io7m.jranges 2.0.2
2016-08-03 Change: Update POM files to 2016 standards. Update plugins.
2016-08-03 Change: The packaged jar is now an OSGi bundle.
2016-08-03 Change: (Backwards incompatible) The package will no longer compile on JDK 6 due to Checkstyle, but the compiled code is still JDK 6 compatible.
2015-08-09 Release: com.io7m.jranges 2.0.1
2015-08-09 Change: Migrate to GitHub.
2015-07-19 Release: com.io7m.jranges 2.0.0
2015-07-19 Change: (Backwards incompatible) Correct parameter type of RangeInclusiveD.includesValue().
2015-07-19 Change: (Backwards incompatible) Move all predefined ranges to Ranges.
2015-07-19 Change: (Backwards incompatible) Suffix all previously unsuffixed method names with Long for uniformity.
2015-07-19 Change: Add JCIP annotations.
2014-12-03 Change: Fix javadoc comments for Java 8's doclint.
2014-12-03 Change: Ensure source jars for unit tests are created.
2014-06-22 Release: com.io7m.jranges 1.0.0
2014-06-22 Change: Initial release.

Sources

This project uses Git to manage source code.

Repository: https://www.github.com/io7m-com/jranges

$ git clone https://www.github.com/io7m-com/jranges

License

Copyright © 2024 Mark Raynsford <code@io7m.com> https://www.io7m.com

Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR
BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

Bug Tracker

The project uses GitHub Issues to track issues.