KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > util > List


1 /*
2  * Copyright 2006 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations under
14  * the License.
15  */

16 package java.util;
17
18 /**
19  * Represents a sequence of objects.
20  */

21 public interface List extends Collection JavaDoc {
22
23   void add(int index, Object JavaDoc element);
24
25   boolean add(Object JavaDoc o);
26
27   boolean addAll(Collection JavaDoc c);
28
29   boolean addAll(int index, Collection JavaDoc c);
30
31   void clear();
32
33   boolean contains(Object JavaDoc o);
34
35   boolean containsAll(Collection JavaDoc c);
36
37   boolean equals(Object JavaDoc o);
38
39   Object JavaDoc get(int index);
40
41   int hashCode();
42
43   int indexOf(Object JavaDoc o);
44
45   boolean isEmpty();
46
47   Iterator JavaDoc iterator();
48
49   int lastIndexOf(Object JavaDoc o);
50
51   ListIterator JavaDoc listIterator();
52
53   ListIterator JavaDoc listIterator(int from);
54
55   Object JavaDoc remove(int index);
56
57   boolean remove(Object JavaDoc o);
58
59   boolean removeAll(Collection JavaDoc c);
60
61   boolean retainAll(Collection JavaDoc c);
62
63   Object JavaDoc set(int index, Object JavaDoc element);
64
65   int size();
66
67   Object JavaDoc[] toArray();
68
69 }
70
Popular Tags