An open API service indexing awesome lists of open source software.

https://github.com/retrostreams/android-retroatomic

Backport of Java 8 Double/Long Accumulator/Adder for Android Studio 3.x D8 / desugar toolchain, forked from https://github.com/stefan-zobel/streamsupport
https://github.com/retrostreams/android-retroatomic

android java8 lock-free

Last synced: 10 months ago
JSON representation

Backport of Java 8 Double/Long Accumulator/Adder for Android Studio 3.x D8 / desugar toolchain, forked from https://github.com/stefan-zobel/streamsupport

Awesome Lists containing this project

README

          

[![Maven Central](https://img.shields.io/maven-central/v/net.sourceforge.streamsupport/android-retroatomic.svg)](http://mvnrepository.com/artifact/net.sourceforge.streamsupport/android-retroatomic)
[![javadoc.io](https://javadoc.io/badge2/net.sourceforge.streamsupport/android-retroatomic/javadoc.svg)](https://javadoc.io/doc/net.sourceforge.streamsupport/android-retroatomic)

# android-retroatomic

![](art/streamsupport-sf.png)

android-retroatomic is a backport of the java.util.concurrent.atomic classes added in Java 8 (DoubleAccumulator, LongAccumulator, DoubleAdder and LongAdder) for Android developers wanting to use the Android Studio 3.x D8 / desugar toolchain.

There is nothing specific to Android or the desugar toolchain in this code (it could even be compiled to Java 6 bytecode) but it has a dependency on [android-retrostreams](https://github.com/retrostreams/android-retrostreams) which is why this exists as a separate component (the corresponding [streamsupport-atomic](https://github.com/stefan-zobel/streamsupport/tree/master/src/atomic) component can't be used with android-retrostreams
and [android-retrostreams](https://github.com/retrostreams/android-retrostreams) itself can *only* be used with desugar or Java 8 and higher).

Other than having a different package name this code has no further changes compared with [streamsupport-atomic](https://github.com/stefan-zobel/streamsupport/tree/master/src/atomic)

Online Javadoc is available at [docs](https://retrostreams.github.io/android-retroatomic/apidocs/index.html)

Please give feedback [here](https://github.com/retrostreams/android-retroatomic/issues) if you experience any problems.

### build.gradle:

```gradle
dependencies {
implementation 'net.sourceforge.streamsupport:android-retroatomic:1.7.4'
}
```

## LICENSE

GNU General Public License, version 2, [with the Classpath Exception](https://github.com/retrostreams/android-retroatomic/blob/master/GPL_ClasspathException) (and [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) for JSR-166 derived code)