mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Guava migration - Inline Predicates.compose
This commit is contained in:
@@ -782,7 +782,7 @@ public abstract class ItemManager<T extends InventoryItem> extends FContainer im
|
||||
|
||||
Iterable<Entry<T, Integer>> items = pool;
|
||||
if (useFilter) {
|
||||
Predicate<Entry<T, Integer>> pred = Predicates.compose(filterPredicate, (Function<Entry<T, Integer>, T>) Entry::getKey);
|
||||
Predicate<Entry<T, Integer>> pred = x -> filterPredicate.test(x.getKey());
|
||||
items = Iterables.filter(pool, pred);
|
||||
}
|
||||
model.addItems(items);
|
||||
|
||||
Reference in New Issue
Block a user