1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.apache.commons.collections.primitives.decorators; |
18 | |
|
19 | |
import org.apache.commons.collections.primitives.ShortCollection; |
20 | |
import org.apache.commons.collections.primitives.ShortIterator; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
abstract class BaseProxyShortCollection implements ShortCollection { |
30 | |
protected abstract ShortCollection getProxiedCollection(); |
31 | |
|
32 | 17 | protected BaseProxyShortCollection() { |
33 | 17 | } |
34 | |
|
35 | |
public boolean add(short element) { |
36 | 1 | return getProxiedCollection().add(element); |
37 | |
} |
38 | |
|
39 | |
public boolean addAll(ShortCollection c) { |
40 | 1 | return getProxiedCollection().addAll(c); |
41 | |
} |
42 | |
|
43 | |
public void clear() { |
44 | 1 | getProxiedCollection().clear(); |
45 | 1 | } |
46 | |
|
47 | |
public boolean contains(short element) { |
48 | 1 | return getProxiedCollection().contains(element); |
49 | |
} |
50 | |
|
51 | |
public boolean containsAll(ShortCollection c) { |
52 | 1 | return getProxiedCollection().containsAll(c); |
53 | |
} |
54 | |
|
55 | |
public boolean isEmpty() { |
56 | 2 | return getProxiedCollection().isEmpty(); |
57 | |
} |
58 | |
|
59 | |
public ShortIterator iterator() { |
60 | 1 | return getProxiedCollection().iterator(); |
61 | |
} |
62 | |
|
63 | |
public boolean removeAll(ShortCollection c) { |
64 | 1 | return getProxiedCollection().removeAll(c); |
65 | |
} |
66 | |
|
67 | |
public boolean removeElement(short element) { |
68 | 1 | return getProxiedCollection().removeElement(element); |
69 | |
} |
70 | |
|
71 | |
public boolean retainAll(ShortCollection c) { |
72 | 1 | return getProxiedCollection().retainAll(c); |
73 | |
} |
74 | |
|
75 | |
public int size() { |
76 | 6 | return getProxiedCollection().size(); |
77 | |
} |
78 | |
|
79 | |
public short[] toArray() { |
80 | 1 | return getProxiedCollection().toArray(); |
81 | |
} |
82 | |
|
83 | |
public short[] toArray(short[] a) { |
84 | 1 | return getProxiedCollection().toArray(a); |
85 | |
} |
86 | |
|
87 | |
|
88 | |
|
89 | |
public boolean equals(Object obj) { |
90 | 1 | return getProxiedCollection().equals(obj); |
91 | |
} |
92 | |
|
93 | |
public int hashCode() { |
94 | 1 | return getProxiedCollection().hashCode(); |
95 | |
} |
96 | |
|
97 | |
public String toString() { |
98 | 1 | return getProxiedCollection().toString(); |
99 | |
} |
100 | |
|
101 | |
} |