KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > j2me > util > Set


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
11 public interface Set extends Collection {
12     int size();
13
14     boolean isEmpty();
15
16     boolean contains(Object JavaDoc o);
17
18     Iterator iterator();
19
20     Object JavaDoc[] toArray();
21
22     Object JavaDoc[] toArray(Object JavaDoc[] a);
23
24     boolean add(Object JavaDoc o);
25
26     boolean remove(Object JavaDoc 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 JavaDoc o);
39
40     int hashCode();
41 }
Popular Tags