1 16 package org.apache.commons.collections.set; 17 18 import java.util.Set ; 19 20 import org.apache.commons.collections.collection.SynchronizedCollection; 21 22 35 public class SynchronizedSet extends SynchronizedCollection implements Set { 36 37 38 private static final long serialVersionUID = -8304417378626543635L; 39 40 46 public static Set decorate(Set set) { 47 return new SynchronizedSet(set); 48 } 49 50 57 protected SynchronizedSet(Set set) { 58 super(set); 59 } 60 61 68 protected SynchronizedSet(Set set, Object lock) { 69 super(set, lock); 70 } 71 72 77 protected Set getSet() { 78 return (Set ) collection; 79 } 80 81 } 82 | Popular Tags |