1 16 package java.util; 17 18 21 public interface Collection { 22 23 boolean add(Object o); 24 25 boolean addAll(Collection c); 26 27 void clear(); 28 29 boolean contains(Object o); 30 31 boolean containsAll(Collection c); 32 33 boolean equals(Object o); 34 35 int hashCode(); 36 37 boolean isEmpty(); 38 39 Iterator iterator(); 40 41 boolean remove(Object o); 42 43 boolean removeAll(Collection c); 44 45 boolean retainAll(Collection c); 46 47 int size(); 48 49 Object [] toArray(); 50 51 } 52 | Popular Tags |