Guava migration - Inline Predicates.in

This commit is contained in:
Jetz
2024-09-02 20:06:49 -04:00
parent ef011d3f51
commit 4eb8fddfef
4 changed files with 3 additions and 7 deletions

View File

@@ -1,6 +1,5 @@
package forge.util;
import java.util.Collection;
import java.util.Objects;
import java.util.function.Function;
import java.util.function.Predicate;
@@ -44,7 +43,4 @@ public class Predicates {
return x -> Objects.equals(target, x);
}
public static <T> Predicate<T> in(Collection<? extends T> target) {
return target::contains;
}
}