1 3 package jodd.util.collection; 4 5 6 import java.util.Collection ; 7 import java.util.Iterator ; 8 import java.util.Set ; 9 10 13 public interface Bag extends Collection { 14 15 23 int getCount(Object object); 24 25 41 boolean add(Object object); 42 43 54 boolean add(Object object, int nCopies); 55 56 68 boolean remove(Object object); 69 70 80 boolean remove(Object object, int nCopies); 81 82 89 Set uniqueSet(); 90 91 96 int size(); 97 98 114 boolean containsAll(Collection coll); 115 116 132 boolean removeAll(Collection coll); 133 134 153 boolean retainAll(Collection coll); 154 155 162 Iterator iterator(); 163 164 } | Popular Tags |