Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/NamedArrayList.java @ 809:d05b17a4f3d0
Added javadoc in describedata package.
gnv-artifacts/trunk@891 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 09 Apr 2010 07:27:38 +0000 |
parents | c4156275c1e1 |
children | 05bf8534a35a |
comparison
equal
deleted
inserted
replaced
808:2e951160c43d | 809:d05b17a4f3d0 |
---|---|
2 | 2 |
3 import java.util.ArrayList; | 3 import java.util.ArrayList; |
4 import java.util.Collection; | 4 import java.util.Collection; |
5 | 5 |
6 /** | 6 /** |
7 * This is the default implementation of <code>NamedCollection</code>. | |
8 * | |
9 * @param <E> The type which the objects stored in this object are from. | |
7 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | 10 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
8 * | |
9 */ | 11 */ |
10 public class NamedArrayList<E> extends ArrayList<E> implements | 12 public class NamedArrayList<E> extends ArrayList<E> implements |
11 NamedCollection<E> { | 13 NamedCollection<E> { |
12 /** | 14 /** |
13 * | 15 * |
18 | 20 |
19 private boolean multiSelect = false; | 21 private boolean multiSelect = false; |
20 | 22 |
21 /** | 23 /** |
22 * Constructor | 24 * Constructor |
25 * | |
26 * @param name The name of this collection. | |
23 */ | 27 */ |
24 public NamedArrayList(String name) { | 28 public NamedArrayList(String name) { |
25 this.name = name; | 29 this.name = name; |
26 } | 30 } |
27 | 31 |
28 /** | 32 /** |
29 * Constructor | 33 * Constructor |
30 * | 34 * |
31 * @param initialCapacity | 35 * @param name The name of this collection. |
36 * @param initialCapacity The initial capacity of this collection. | |
32 */ | 37 */ |
33 public NamedArrayList(String name, int initialCapacity) { | 38 public NamedArrayList(String name, int initialCapacity) { |
34 super(initialCapacity); | 39 super(initialCapacity); |
35 this.name = name; | 40 this.name = name; |
36 } | 41 } |
37 | 42 |
38 /** | 43 /** |
39 * Constructor | 44 * Constructor |
40 * | 45 * |
41 * @param c | 46 * @param name The name of this collection. |
47 * @param c the collection whose elements are to be placed into this list. | |
42 */ | 48 */ |
43 public NamedArrayList(String name, Collection<E> c) { | 49 public NamedArrayList(String name, Collection<E> c) { |
44 super(c); | 50 super(c); |
45 this.name = name; | 51 this.name = name; |
46 } | 52 } |
47 | 53 |
48 /** | |
49 * @see de.intevation.gnv.state.describedata.NamedCollection#getName() | |
50 */ | |
51 public String getName() { | 54 public String getName() { |
52 return this.name; | 55 return this.name; |
53 } | 56 } |
54 | 57 |
55 /** | |
56 * @see de.intevation.gnv.state.describedata.NamedCollection#isMultiSelect() | |
57 */ | |
58 public boolean isMultiSelect() { | 58 public boolean isMultiSelect() { |
59 return multiSelect; | 59 return multiSelect; |
60 } | 60 } |
61 | 61 |
62 /** | |
63 * @see de.intevation.gnv.state.describedata.NamedCollection#setMultiSelect(boolean) | |
64 */ | |
65 public void setMultiSelect(boolean multiSelect) { | 62 public void setMultiSelect(boolean multiSelect) { |
66 this.multiSelect = multiSelect; | 63 this.multiSelect = multiSelect; |
67 } | 64 } |
68 } | 65 } |
66 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |