1 16 package org.apache.commons.collections.bag; 17 18 import org.apache.commons.collections.Bag; 19 import org.apache.commons.collections.functors.InstanceofPredicate; 20 21 35 public class TypedBag { 36 37 49 public static Bag decorate(Bag bag, Class type) { 50 return new PredicatedBag(bag, InstanceofPredicate.getInstance(type)); 51 } 52 53 56 protected TypedBag() { 57 super(); 58 } 59 60 } 61 | Popular Tags |