01: package com.vividsolutions.jump.util;
02:
03: import java.util.Collection;
04: import java.util.Iterator;
05:
06: public abstract class CollectionWrapper implements Collection {
07: public abstract Collection getCollection();
08:
09: public int size() {
10: return getCollection().size();
11: }
12:
13: public void clear() {
14: getCollection().clear();
15: }
16:
17: public boolean isEmpty() {
18: return getCollection().isEmpty();
19: }
20:
21: public Object[] toArray() {
22: return getCollection().toArray();
23: }
24:
25: public boolean add(Object o) {
26: return getCollection().add(o);
27: }
28:
29: public boolean contains(Object o) {
30: return getCollection().contains(o);
31: }
32:
33: public boolean remove(Object o) {
34: return getCollection().remove(o);
35: }
36:
37: public boolean addAll(Collection c) {
38: return getCollection().addAll(c);
39: }
40:
41: public boolean containsAll(Collection c) {
42: return getCollection().containsAll(c);
43: }
44:
45: public boolean removeAll(Collection c) {
46: return getCollection().removeAll(c);
47: }
48:
49: public boolean retainAll(Collection c) {
50: return getCollection().retainAll(c);
51: }
52:
53: public Iterator iterator() {
54: return getCollection().iterator();
55: }
56:
57: public Object[] toArray(Object[] a) {
58: return getCollection().toArray(a);
59: }
60: }
|