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
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 com.svenruppert.functional.reactive {
exports com.svenruppert.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;
}
I switched to dependencies com.svenruppert with version 06.00.00 This is the same as rapidpm dependencies, but in a new namespace and smaller updates. This project is switching to the namespace com.svenruppert as well. no new features are included.
fixed jdk in jitpack yml
updated parent, and maven minimum version to 3.9.6
Switched groupid to 02.00.02-SRU - jitpack custom domain name is not working properly updated to parent version 05.00.03-SRU
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