@@ -0,0 +1,509 @@
+package net.gtaun.shoebill.common;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.List;%0A%0Apublic class FilterUtils%0A%7B%0A%09public static %3CT%3E List%3CT%3E filter(Collection%3CT%3E src, Filter%3CT%3E filter)%0A%09%7B%0A%09%09return filter(new ArrayList%3CT%3E(), src, filter);%0A%09%7D%0A%09%0A%09public static %3CC extends Collection%3CT%3E, T%3E C filter(C collection, Collection%3CT%3E src, Filter%3CT%3E filter)%0A%09%7B%0A%09%09for (T obj : src) if (filter.isAcceptable(obj)) collection.add(obj);%0A%09%09return collection;%0A%09%7D%0A%09%0A%09private FilterUtils()%0A%09%7B%0A%0A%09%7D%0A%7D%0A

添加 FilterUtils 。