mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Guava migration - Inline Predicates.equalTo
This commit is contained in:
@@ -37,10 +37,4 @@ public class Predicates {
|
||||
//TODO: remove casting?
|
||||
return ((Predicate<T>) first).or(second);
|
||||
}
|
||||
|
||||
//TODO: This one probably needs case by case; nullable targets need a safe test, whereas nonnull targets can be simplified further.
|
||||
public static <T> Predicate<T> equalTo(T target) {
|
||||
return x -> Objects.equals(target, x);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user