1 16 package org.apache.commons.collections; 17 18 import java.util.Collection ; 19 import java.util.Iterator ; 20 import java.util.Set ; 21 22 46 public interface Bag extends Collection { 47 48 56 int getCount(Object object); 57 58 74 boolean add(Object object); 75 76 87 boolean add(Object object, int nCopies); 88 89 101 boolean remove(Object object); 102 103 113 boolean remove(Object object, int nCopies); 114 115 122 Set uniqueSet(); 123 124 129 int size(); 130 131 147 boolean containsAll(Collection coll); 148 149 165 boolean removeAll(Collection coll); 166 167 186 boolean retainAll(Collection coll); 187 188 195 Iterator iterator(); 196 197 221 } 222 | Popular Tags |