01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: 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: }
|