01: /*
02: * Copyright 2007 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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:
17: package java.util;
18:
19: /**
20: * Uses Java 1.5 ListIterator for documentation. The methods hasNext, next, and
21: * remove are repeated to allow the specialized ListIterator documentation to be
22: * associated with them. <a
23: * href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/ListIterator.html">[Sun
24: * docs]</a>
25: *
26: * @param <E> element type.
27: */
28: public interface ListIterator<E> extends Iterator<E> {
29:
30: void add(E o);
31:
32: boolean hasNext();
33:
34: boolean hasPrevious();
35:
36: E next();
37:
38: int nextIndex();
39:
40: E previous();
41:
42: int previousIndex();
43:
44: void remove();
45:
46: void set(E o);
47: }
|