Reactive collections

Hookless » Adapters » Collections

Reactive collections as implemented in ReactiveCollections class are reactive adapters for Java collections. Reactive collections wrap Java collections and turn them into reactive data source as long as all accesses are mediated by the wrapper. Reactive collections will wake up dependent reactive computations whenever relevant write is made to the collection.

Download

Get Hookless Collections from Maven Central:

Maven tool
<dependency>
    <groupId>com.machinezoo.hookless</groupId>
    <artifactId>hookless-collections</artifactId>
    <version>0.1.1</version>
</dependency>

Or clone sources from GitHub or Bitbucket. Configure your build for Java 17+. Sources and binaries are distributed under Apache License 2.0.

If your project is a Java module, add the following declaration to your module-info.java:

requires com.machinezoo.hookless.collections;

Documentation

See the ReactiveCollections class in javadoc. Since the javadoc is not complete yet, you might want to take a look at comments and implementation in ReactiveCollections.java.