Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/NamedArrayList.java @ 171:7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
gnv-artifacts/trunk@208 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 09 Oct 2009 07:54:48 +0000 |
parents | e33c61735a4e |
children |
comparison
equal
deleted
inserted
replaced
170:7be22e76c270 | 171:7fb9441dd8af |
---|---|
6 import java.util.ArrayList; | 6 import java.util.ArrayList; |
7 import java.util.Collection; | 7 import java.util.Collection; |
8 | 8 |
9 /** | 9 /** |
10 * @author Tim Englich <tim.englich@intevation.de> | 10 * @author Tim Englich <tim.englich@intevation.de> |
11 * | 11 * |
12 */ | 12 */ |
13 public class NamedArrayList<E> extends ArrayList<E> implements NamedCollection<E> { | 13 public class NamedArrayList<E> extends ArrayList<E> implements |
14 NamedCollection<E> { | |
14 /** | 15 /** |
15 * | 16 * |
16 */ | 17 */ |
17 private static final long serialVersionUID = 8172229594749676354L; | 18 private static final long serialVersionUID = 8172229594749676354L; |
18 | 19 |
19 private String name = null; | 20 private String name = null; |
20 | 21 |
21 private boolean multiSelect = false; | 22 private boolean multiSelect = false; |
23 | |
22 /** | 24 /** |
23 * Constructor | 25 * Constructor |
24 */ | 26 */ |
25 public NamedArrayList(String name) { | 27 public NamedArrayList(String name) { |
26 this.name = name; | 28 this.name = name; |
27 } | 29 } |
28 | 30 |
29 /** | 31 /** |
30 * Constructor | 32 * Constructor |
33 * | |
31 * @param initialCapacity | 34 * @param initialCapacity |
32 */ | 35 */ |
33 public NamedArrayList(String name, int initialCapacity) { | 36 public NamedArrayList(String name, int initialCapacity) { |
34 super(initialCapacity); | 37 super(initialCapacity); |
35 this.name = name; | 38 this.name = name; |
36 } | 39 } |
37 | 40 |
38 /** | 41 /** |
39 * Constructor | 42 * Constructor |
43 * | |
40 * @param c | 44 * @param c |
41 */ | 45 */ |
42 public NamedArrayList(String name, Collection<E> c) { | 46 public NamedArrayList(String name, Collection<E> c) { |
43 super(c); | 47 super(c); |
44 this.name = name; | 48 this.name = name; |
48 * @see de.intevation.gnv.transition.describedata.NamedCollection#getName() | 52 * @see de.intevation.gnv.transition.describedata.NamedCollection#getName() |
49 */ | 53 */ |
50 public String getName() { | 54 public String getName() { |
51 return this.name; | 55 return this.name; |
52 } | 56 } |
57 | |
53 /** | 58 /** |
54 * @see de.intevation.gnv.transition.describedata.NamedCollection#isMultiSelect() | 59 * @see de.intevation.gnv.transition.describedata.NamedCollection#isMultiSelect() |
55 */ | 60 */ |
56 public boolean isMultiSelect() { | 61 public boolean isMultiSelect() { |
57 return multiSelect; | 62 return multiSelect; |