KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > j2me > util > Collection


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2005 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

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