01: package com.vividsolutions.jump.util;
02:
03: import java.util.Collection;
04: import java.util.List;
05: import java.util.ListIterator;
06:
07: public abstract class ListWrapper extends CollectionWrapper implements
08: List {
09: public List getList() {
10: return (List) getCollection();
11: }
12:
13: public Object get(int index) {
14: return getList().get(index);
15: }
16:
17: public Object remove(int index) {
18: return getList().remove(index);
19: }
20:
21: public void add(int index, Object element) {
22: getList().add(index, element);
23: }
24:
25: public int indexOf(Object o) {
26: return getList().indexOf(o);
27: }
28:
29: public int lastIndexOf(Object o) {
30: return getList().lastIndexOf(o);
31: }
32:
33: public boolean addAll(int index, Collection c) {
34: return getList().addAll(index, c);
35: }
36:
37: public List subList(int fromIndex, int toIndex) {
38: return getList().subList(fromIndex, toIndex);
39: }
40:
41: public ListIterator listIterator() {
42: return getList().listIterator();
43: }
44:
45: public ListIterator listIterator(int index) {
46: return getList().listIterator(index);
47: }
48:
49: public Object set(int index, Object element) {
50: return getList().set(index, element);
51: }
52: }
|