diff --git a/runtime-parent/runtime-compute/src/main/java/com/speedment/runtime/compute/ToBoolean.java b/runtime-parent/runtime-compute/src/main/java/com/speedment/runtime/compute/ToBoolean.java index a175e1929e..e66d8df7ad 100644 --- a/runtime-parent/runtime-compute/src/main/java/com/speedment/runtime/compute/ToBoolean.java +++ b/runtime-parent/runtime-compute/src/main/java/com/speedment/runtime/compute/ToBoolean.java @@ -125,10 +125,42 @@ default int compare(T first, T second) { return Boolean.compare(f, s); } + /** + * {@inheritDoc} + *
+ * {@code ToBoolean} is a bit special when it comes to the
+ * {@code compose()}-method. If the {@code before} method returns
+ * {@code null}, the composed expression will return {@code false}. This is
+ * to remain compatible with how Speedment handles predicates in streams.
+ * To get a {@code ToBooleanNullable} that acts as you might expect, instead
+ * use {@link #compose}
+ *
+ * @param before the function to apply before this function is applied
+ * @param