1package ds.interfaces;
2
3
4
5import java.util.Iterator;
6
7import ds.util.Invariant;
8
9import ds.util.E;
10
11public
12 interface Set
13 extends Iterable<E>,
14 Invariant {
15
16 boolean isEmpty();
17 boolean member(E e);
18 int size();
19 E findMin();
20 E findMax();
21 Set insert(E e);
22 Set remove(E e);
23 Set union(Set m2);
24 Set difference(Set m2);
25 Set intersect(Set m2);
26 Set copy();
27
28
29
30
31
32}