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