mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Guava migration - Inline Predicates.in
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user