Commit 83300555 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

LambdaUtils: Remove the unsued foreach method

It is already provided for collections and streams in Java 8.

Issue-Ref: 3203
Issue-Url: https://af3-developer.fortiss.org/issues/3203


Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 6f1fbe5c
LambdaUtils.java 2b2767757ebc00e13bf73c55cbaeecc067bc3440 YELLOW
LambdaUtils.java 8eb64e9bc18049e78e3bdd98fd17fe82dfc8bb47 YELLOW
......@@ -26,7 +26,6 @@ import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.function.BiFunction;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
......@@ -270,18 +269,6 @@ public class LambdaUtils {
return getFirst(filterType(inCol, typeFilter));
}
/**
* Applies the given {@code action} to each element of the given {@code inputCollection}.
*
* @param inputCollection
* Collection to traverse.
* @param action
* Action to be applied to each element.
*/
public static void forEach(Collection<?> inputCollection, Consumer<? super Object> action) {
inputCollection.stream().forEach(action);
}
/**
* Filters the given collection by the given filter and returns the first of the remaining
* elements .
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment