KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > j2me > util > List


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 List 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 addAll(int index, 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
44     Object JavaDoc get(int index);
45
46     Object JavaDoc set(int index, Object JavaDoc element);
47
48     void add(int index, Object JavaDoc element);
49
50     Object JavaDoc remove(int index);
51
52     int indexOf(Object JavaDoc o);
53
54     int lastIndexOf(Object JavaDoc o);
55
56     ListIterator listIterator();
57
58     ListIterator listIterator(int index);
59
60     List subList(int fromIndex, int toIndex);
61 }
Popular Tags