This is a nano lib, based on a few classes that will give you a handful of functional elements that you can use in your core Java project. If you want to know more about it, have a look at my Youtube Series about this topic.
- Youtube: [DE] - bit.ly/Youtube-Sven
- Youtube: [EN] - bit.ly/Outdoor-Nerd
This newsletter gives you access to the slides of my videos, and you are the first to be informed about my new videos, articles and blog posts. Besides, you will always receive the latest information about where and when I will soon be giving online lectures, meetups and free webinars. So that you are among the first that will have the change to register and to grab your spot.
Newsletter: https://mailings.sven-ruppert.de
I compiled this with the Open JDK8. Previous versions at maven central are build ith JDK10. I went away from the JDK10, because most projects I know, are using JDK8 in production right know. But, if you want to use this with JDK9/10/11/... you can use it.. it is working perfect! Only if you start using the JMS, it could be helpful to add a module-info.java Add the following lines, switch inside the pom.xml to the JDK version you prefer, start a mvn clean install and be happy ;-)
module rapidpm.functional.reactive {
exports org.rapidpm.frp;
exports com.svenruppert.functional.functions;
exports com.svenruppert.functional.matcher;
exports com.svenruppert.functional.memoizer;
exports com.svenruppert.functional.model;
exports com.svenruppert.functional.model.serial;
exports com.svenruppert.functional.reactive;
}
This Lib is working with
- Java 08 (open/oracle/ibm/zulu/graalvm)
- Java 09 (open/oracle/ibm/zulu)
- Java 10 (open/oracle/zulu)
- Java 11 (open/oracle/zulu)
- Java 12 (open/oracle/zulu)
- Java 13 (open/oracle/zulu)
- Java 14 (open/oracle/zulu)
<dependency>
<groupId>org.rapidpm</groupId>
<artifactId>rapidpm-functional-reactive</artifactId>
<version>--version--</version>
</dependency>
Changing to new namespace. The package will be under com.svenruppert:functional-reactive now
This release we will increase test coverage and documentation. The basic structures and functions are in production used since longer time. Adding Apache Lic header to all files
- Transformations
- static Function<Iterator, Stream> iteratorToStream()
- <V, R> Result thenCombineFlat(V value, BiFunction<T, V, R> func)
- started Youtube Series about this lib.
- removed JitCI from production pipeline
- added JitCI for deployment as well
- version updates
- static <T, R> CheckedFunction<T, R> asCheckedFunc(Function<T, R> f)
- Converting.convertToString
- Converting.convertToInteger
- Converting.convertToDouble
- SystemProperties Util Functions
- Single
- BUGFIX in case, the result was calculated two times.
- defined it as final, as there was no big change since a long time using it in a bunch of projects
- JDK8 is used to create the jar
- module-info.java is available inside the folder _data
- parent pom update - version updates
- parent pom update - version updates
- added docker based deploy scripts
- switched to new version numbers format To make search/replace easier, I started with a new version format. 00.07.04-RPM ( -SNAPSHOT). The x.y.z is used in the same way, as before, but added RPM and leading zeros to make this format different from others. With this it is less possible to mix/change version numbers from other dependencies. A 0.7.4 could be used from different dependencies. ;-)
- dependency updates
- added
CompletableFutureQueue<T, N> thenCombineAsyncFromArray(Function<R, N>[] nextTransformations)
- bug fix for modules-info.java
- activated JIGSAW
- updated to rapidpm-dependencies 4.0.2
- started with JDK10/11 support
- using JDK11 for development and JDK10 for deployment
- latest JDK8 only version! - switching to JDK10/11 -- JDK8 model
- Added docker scripts for cross JDK compiles
- updates parent versions
- deactivated nexus mirror for drone
- deactivated orig IBM JDK 8/9 Docker images
This release is a maintenance release only, no new functionality
- switched to new dependencies version 0.6.3
- this includes the lic header plugin
- version updates
- minimized profiles
- removed indirect dependency to old nexus
- updated all file headers
- added
CheckedTriFunction<T1, T2, T3, R> extends TriFunction<T1, T2, T3, Result<R>>
- typo unCurryBifunction -> unCurryBiFunction
- typo unCurryTrifunction -> unCurryTriFunction
- curry / un-curry Checked Functions
Transformations
- curryCheckedBiFunction() -
Function<CheckedBiFunction<A, B, R>, Function<A, CheckedFunction<B, R>>>
- unCurryCheckedBiFunction() -
Function<Function<A, CheckedFunction<B, R>>, CheckedBiFunction<A, B, R>>
- curryCheckedTriFunction() -
Function< CheckedTriFunction<A, B, C, R>, Function<A, Function<B, CheckedFunction<C, R>>>>
- unCurryCheckedTriFunction() -
Function< Function<A, Function<B, CheckedFunction<C, R>>>, CheckedTriFunction<A, B, C, R>>
- curryCheckedBiFunction() -
- extend Result with a fluent API
- void ifFailed -> Result ifFailed
- void ifPresent -> Result ifPresent
- void ifAbsent -> Result ifAbsent
- renamed Tripel (german) to Triple (en)
- pitest is working with junit5 now
- Result added
void ifFailed(Consumer<String> failed);
- switched to jUnit5
- updated parent pom to 3.5.7
- Result added
<U> Result<U> asFailure()
- Result added
<U> Result<U> flatMap(Function<T, Result<U>> mapper)
- ExceptionFunctions.message() extended exception message with Exception Classname
- added CompletableFutureQueue
- ExceptionFunctions added
Function<Exception, String> message()
- ExceptionFunctions added
Function<Exception, Stream<StackTraceElement>> toStackTraceStream()
- added Sext and Sept data-classes
- added model.serial pkg with Data classes only for
extends Serializable
types - Transformations
- curry / unCurry - BiFunction / TriFunction
- StreamFunctions added
<T> Function<Predicate<T>, Function<Stream<T>, Stream<T>>> streamFilter()
- Result.ofNullable
- Result renamed
bind(Consumer<T> success, Consumer<String> failure)
toifPresentOrElse(Consumer<T> success, Consumer<String> failure)
- Result added JDK9 signature
ifPresentOrElse(Consumer<? super T> action, Runnable emptyAction)
- Result added JDK9 signature
Stream<T> stream()
- Result added
Result<T> or(Supplier<? extends Result<? extends T>> supplier)
- Result added
void ifAbsent(Runnable action)
- Result added
<U> Result<U> map(Function<? super T, ? extends U> mapper)
- added Result.thenCombine
- added Result.thenCombineAsync
- added CheckedBiFunction
- added CheckedPredicate
- basic Datastructures like Pair, Triple, Quad
- added fromOptional and toOptional to the class Result
- added CheckedFunction , CheckedConsumer and CheckedSupplier
- extracted TriFunction from Memoizer to pkg functions
- added QuadFunction
- added StringFunctions
- added Transformations
- added StringFunctions
- ported Strman-java to functional style