01: package java.util;
02:
03: public interface Set extends Collection {
04: boolean add(Object o);
05:
06: boolean addAll(Collection c);
07:
08: void clear();
09:
10: boolean contains(Object o);
11:
12: boolean containsAll(Collection c);
13:
14: boolean equals(Object o);
15:
16: int hashCode();
17:
18: boolean isEmpty();
19:
20: Iterator iterator();
21:
22: boolean remove(Object o);
23:
24: boolean removeAll(Collection c);
25:
26: boolean retainAll(Collection c);
27:
28: int size();
29:
30: Object[] toArray();
31:
32: Object[] toArray(Object[] a);
33: }
|