1 16 package org.apache.commons.collections.set; 17 18 import java.util.Set ; 19 20 import org.apache.commons.collections.functors.InstanceofPredicate; 21 22 36 public class TypedSet { 37 38 49 public static Set decorate(Set set, Class type) { 50 return new PredicatedSet(set, InstanceofPredicate.getInstance(type)); 51 } 52 53 56 protected TypedSet() { 57 } 58 59 } 60 | Popular Tags |