diff --git a/pitest/src/main/java/org/pitest/functional/prelude/Prelude.java b/pitest/src/main/java/org/pitest/functional/prelude/Prelude.java index dc2c2a54c..5b035bc31 100644 --- a/pitest/src/main/java/org/pitest/functional/prelude/Prelude.java +++ b/pitest/src/main/java/org/pitest/functional/prelude/Prelude.java @@ -33,28 +33,28 @@ public abstract class Prelude { @SafeVarargs - public static final And and(final Predicate... ps) { + public static And and(final Predicate... ps) { return new And<>(Arrays.asList(ps)); } - public static final And and(final Iterable> ps) { + public static And and(final Iterable> ps) { return new And<>(ps); } - public static final Predicate not(final Predicate p) { + public static Predicate not(final Predicate p) { return p.negate(); } @SafeVarargs - public static final Or or(final Predicate... ps) { + public static Or or(final Predicate... ps) { return new Or<>(Arrays.asList(ps)); } - public static final Or or(final Iterable> ps) { + public static Or or(final Iterable> ps) { return new Or<>(ps); } - public static final Consumer accumulateTo( + public static Consumer accumulateTo( final Collection collection) { return collection::add; @@ -65,28 +65,28 @@ public static Consumer putToMap(final Map map, return key -> map.put(key, value); } - public static final Function id() { + public static Function id() { return a -> a; } - public static final Function id(final Class type) { + public static Function id(final Class type) { return id(); } - public static final Consumer println() { + public static Consumer println() { return printlnTo(System.out); } - public static final Consumer println(final Class type) { + public static Consumer println(final Class type) { return println(); } - public static final Consumer printlnTo(final Class type, - final PrintStream stream) { + public static Consumer printlnTo(final Class type, + final PrintStream stream) { return printlnTo(stream); } - public static final Consumer printlnTo(final PrintStream stream) { + public static Consumer printlnTo(final PrintStream stream) { return stream::println; }