automatically determine which axis a plot needs

This commit is contained in:
2019-11-24 08:18:52 +01:00
parent 3048f67e9a
commit 892d5a6d08
9 changed files with 137 additions and 61 deletions

View File

@@ -117,6 +117,17 @@ public class CollectionUtils {
}
return false;
}
public static <T> long count(Collection<T> collection, final Compare<T> compare) {
long count = 0;
for (T t : collection) {
boolean found = compare.test(t);
if (found ) {
count++;
}
}
return count;
}
public static <V, T extends Collection<V>> T removeAll(final T collection, final T remove,
final Supplier<T> generator) {