1 9 package j2me.util; 10 import j2me.lang.Iterable; 11 12 public interface Collection extends Iterable { 13 14 int size(); 15 16 boolean isEmpty(); 17 18 boolean contains(Object o); 19 20 Iterator iterator(); 21 22 Object [] toArray(); 23 24 Object [] toArray(Object [] a); 25 26 boolean add(Object o); 27 28 boolean remove(Object o); 29 30 boolean containsAll(Collection c); 31 32 boolean addAll(Collection c); 33 34 boolean removeAll(Collection c); 35 36 boolean retainAll(Collection c); 37 38 void clear(); 39 40 boolean equals(Object o); 41 42 int hashCode(); 43 } | Popular Tags |