Brein Time Utilities Versions Save

Library which contains several time-dependent data and index structures (e.g., IntervalTree, BucketTimeSeries), as well as algorithms.

1.8.0

1 year ago

Version 1.8.0 updates the version used for gson (to 2.9.0), slf4j (1.7.36) and log4j (switched to reload4j-1.2.21).

1.7.0

5 years ago

With version 1.7.0 of the library a new feature was added, which enables developers to evaluate "temporal" expressions. In general, a TemporalExpression can be understood as a formel expression (i.e., a formula), which contains temporal elements, e.g., now() + 4h. The syntax of the expression may depend on the underlying implementation, thus it is recommended to have a closer look at the provided documentation (for the selected implementation).

1.6.4

6 years ago

The provided implementation of Allen's Interval Algebra (see Wikipedia) had an issue to determine the difference between overlap and after, as well as is overlapped by and before. These problems have been fixed.

@ Maven Central @ GitHub

1.6.3

6 years ago

This is a minor release it implements the overlapStream() method:

public Stream<IInterval> overlapStream(final IInterval query)

and provides protected access to the root of the tree:

protected IntervalTreeNode getRoot()

In addition three new methods were added to the TimeUtils:

  • createTimestampList: creates a list of days between the specified start (inclusive) and end (inclusive).
  • firstOfCurrentMonthTime: get first timestamp of current month
  • format: formats different timestamps for different timezones

@ Maven Central @ GitHub

1.6.2

6 years ago

This is a minor release fixing a bug when calculating the maximum value in the IntervalTree. In addition some minor code quality enhancement were performed.

@ Maven Central @ GitHub

1.6.1

7 years ago

This is a minor release fixing the version 1.6.0 deployed on Maven Central.

@ Maven Central @ GitHub

1.6.0

7 years ago

This is a major release providing the capabilities to persist, store, and cache associated data and the IntervalTree index-structure (see Store, Cache, and Persist).

@ Maven Central @ GitHub

1.5.2

7 years ago

This is a minor release, which contains the implementation of Allen's Interval Algebra for the Interval class.

@ Maven Central @ GitHub

1.5.1

7 years ago

This is a minor release, which contains a generalized Interval implementation. This implementation allows the comparison of intervals based on different primitive number types (e.g., double, float, byte, short, integer, long).

@ Maven Central @ GitHub

1.5.0

7 years ago

This release contains the following changes:

  • IntervalTree
    • storing and querying for multiple (equal) intervals, e.g.:
      • calling insert(new Inteval(1, 2)) twice will actually insert two intervals (using a List storage)
      • calling insert(new IdInteval("ID1", 1, 2)) twice will only be inserted once (using a Set storage)
      • calling insert(new IdInteval("ID1", 1, 2)) and insert(new IdInteval("ID2", 1, 2)) will inserted two intervals (independent of the storage)
    • easy extendable Interval type, so that every type of data associated to intervals can be handled
    • IntervalTree implements Collection interface
    • auto-balancing, disable balancing, and manuel balancing
      • auto-balancing (activated by default): IntervalTree.setAutoBalancing(true)
      • disable balancing: IntervalTree.setAutoBalancing(false)
      • manual balancing: IntervalTree.balance()

@ Maven Central @ GitHub