%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.portals.graffito.jcr.persistence.collectionconverter.impl.ManageableArrayList |
|
|
1 | /* |
|
2 | * Copyright 2000-2005 The Apache Software Foundation. |
|
3 | * |
|
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 | * you may not use this file except in compliance with the License. |
|
6 | * You may obtain a copy of the License at |
|
7 | * |
|
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
9 | * |
|
10 | * Unless required by applicable law or agreed to in writing, software |
|
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 | * See the License for the specific language governing permissions and |
|
14 | * limitations under the License. |
|
15 | */ |
|
16 | ||
17 | package org.apache.portals.graffito.jcr.persistence.collectionconverter.impl; |
|
18 | ||
19 | import java.util.ArrayList; |
|
20 | import java.util.Iterator; |
|
21 | ||
22 | import org.apache.portals.graffito.jcr.persistence.collectionconverter.ManageableCollection; |
|
23 | ||
24 | /** |
|
25 | * |
|
26 | * {@link ManageableCollection} ArrayList implementation |
|
27 | * |
|
28 | * @author <a href="mailto:christophe.lombart@gmail.com">Christophe Lombart</a> |
|
29 | * |
|
30 | */ |
|
31 | 0 | public class ManageableArrayList extends ArrayList implements ManageableCollection |
32 | { |
|
33 | ||
34 | /** |
|
35 | * |
|
36 | * @see org.apache.portals.graffito.jcr.persistence.collectionconverter.ManageableCollection#addObject(java.lang.Object) |
|
37 | */ |
|
38 | public void addObject(Object object) |
|
39 | { |
|
40 | 0 | this.add(object); |
41 | ||
42 | 0 | } |
43 | ||
44 | /** |
|
45 | * |
|
46 | * @see org.apache.portals.graffito.jcr.persistence.collectionconverter.ManageableCollection#getIterator() |
|
47 | */ |
|
48 | public Iterator getIterator() |
|
49 | { |
|
50 | 0 | return this.iterator(); |
51 | } |
|
52 | ||
53 | /** |
|
54 | * |
|
55 | * @see org.apache.portals.graffito.jcr.persistence.collectionconverter.ManageableCollection#getSize() |
|
56 | */ |
|
57 | public int getSize() |
|
58 | { |
|
59 | ||
60 | 0 | return this.size(); |
61 | } |
|
62 | ||
63 | ||
64 | ||
65 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |