Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 125 |  | Methods: | 15
| NCLOC: | 52 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
CollectionWrapper.java | - | 25% | 20% | 22.6% |

1 |  |
     /*
2 |  |
      * Joey and its relative products are published under the terms
3 |  |
      * of the Apache Software License.
4 |  |
      */
5 |  |
     package org.asyrinx.brownie.core.collection.wrapper;
6 |  |
7 |  |
     import java.util.Collection;
8 |  |
     import java.util.Iterator;
9 |  |
10 |  |
     import org.asyrinx.brownie.core.util.Wrapper;
11 |  |
12 |  |
     /**
13 |  |
      * @author Akima
14 |  |
      */
15 |  |
     public class CollectionWrapper extends Wrapper implements Collection {
16 |  |
17 |  |
         /**
18 |  |
          * Constructor for CollectionWrapper.
19 |  |
          */
20 | 1 |
         public CollectionWrapper(Collection impl) {
21 | 1 |
             super(impl);
22 | 1 |
             this.collection = impl;
23 |  |
         }
24 |  |
25 |  |
         private final Collection collection;
26 |  |
27 |  |
         /**
28 |  |
          * @see java.util.Collection#size()
29 |  |
          */
30 | 6 |
         public int size() {
31 | 6 |
             return collection.size();
32 |  |
         }
33 |  |
34 |  |
         /**
35 |  |
          * @see java.util.Collection#isEmpty()
36 |  |
          */
37 | 0 |
         public boolean isEmpty() {
38 | 0 |
             return collection.isEmpty();
39 |  |
         }
40 |  |
41 |  |
         /**
42 |  |
          * @see java.util.Collection#contains(Object)
43 |  |
          */
44 | 0 |
         public boolean contains(Object o) {
45 | 0 |
             return collection.contains(o);
46 |  |
         }
47 |  |
48 |  |
         /**
49 |  |
          * @see java.util.Collection#iterator()
50 |  |
          */
51 | 0 |
         public Iterator iterator() {
52 | 0 |
             return collection.iterator();
53 |  |
         }
54 |  |
55 |  |
         /**
56 |  |
          * @see java.util.Collection#toArray()
57 |  |
          */
58 | 0 |
         public Object[] toArray() {
59 | 0 |
             return collection.toArray();
60 |  |
         }
61 |  |
62 |  |
         /**
63 |  |
          * @see java.util.Collection#toArray(Object[])
64 |  |
          */
65 | 0 |
         public Object[] toArray(Object[] a) {
66 | 0 |
             return collection.toArray(a);
67 |  |
         }
68 |  |
69 |  |
         /**
70 |  |
          * @see java.util.Collection#add(Object)
71 |  |
          */
72 | 6 |
         public boolean add(Object o) {
73 | 6 |
             return collection.add(o);
74 |  |
         }
75 |  |
76 |  |
         /**
77 |  |
          * @see java.util.Collection#remove(Object)
78 |  |
          */
79 | 0 |
         public boolean remove(Object o) {
80 | 0 |
             return collection.remove(o);
81 |  |
         }
82 |  |
83 |  |
         /**
84 |  |
          * @see java.util.Collection#containsAll(Collection)
85 |  |
          */
86 | 0 |
         public boolean containsAll(Collection c) {
87 | 0 |
             return collection.containsAll(c);
88 |  |
         }
89 |  |
90 |  |
         /**
91 |  |
          * @see java.util.Collection#addAll(Collection)
92 |  |
          */
93 | 0 |
         public boolean addAll(Collection c) {
94 | 0 |
             return collection.addAll(c);
95 |  |
         }
96 |  |
97 |  |
         /**
98 |  |
          * @see java.util.Collection#removeAll(Collection)
99 |  |
          */
100 | 0 |
         public boolean removeAll(Collection c) {
101 | 0 |
             return collection.removeAll(c);
102 |  |
         }
103 |  |
104 |  |
         /**
105 |  |
          * @see java.util.Collection#retainAll(Collection)
106 |  |
          */
107 | 0 |
         public boolean retainAll(Collection c) {
108 | 0 |
             return collection.retainAll(c);
109 |  |
         }
110 |  |
111 |  |
         /**
112 |  |
          * @see java.util.Collection#clear()
113 |  |
          */
114 | 0 |
         public void clear() {
115 | 0 |
             collection.clear();
116 |  |
         }
117 |  |
118 |  |
         /**
119 |  |
          * @see java.lang.Object#toString()
120 |  |
          */
121 | 0 |
         public String toString() {
122 | 0 |
             return collection.toString();
123 |  |
         }
124 |  |
125 |  |
     }