1 19 package org.objectweb.carol.cmi; 20 21 import java.util.Collection ; 22 import java.util.HashSet ; 23 24 28 public class StubLBFilter { 29 private HashSet hs; 30 33 public StubLBFilter() { 34 hs = new HashSet (); 35 } 36 37 40 public StubLBFilter(Collection c) { 41 hs = new HashSet (c); 42 } 43 44 public boolean add(StubData sd) { 45 return hs.add(sd); 46 } 47 public boolean contains(StubData sd) { 48 return hs.contains(sd); 49 } 50 } 51 | Popular Tags |