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