1 16 package org.apache.commons.collections.set; 17 18 import java.util.Set ; 19 20 import org.apache.commons.collections.Predicate; 21 import org.apache.commons.collections.collection.PredicatedCollection; 22 23 42 public class PredicatedSet extends PredicatedCollection implements Set { 43 44 45 private static final long serialVersionUID = -684521469108685117L; 46 47 58 public static Set decorate(Set set, Predicate predicate) { 59 return new PredicatedSet(set, predicate); 60 } 61 62 74 protected PredicatedSet(Set set, Predicate predicate) { 75 super(set, predicate); 76 } 77 78 83 protected Set getSet() { 84 return (Set ) getCollection(); 85 } 86 87 } 88 | Popular Tags |