comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/StatisticSet.java @ 814:9d427dd2a96a

Added Javadoc in statistic package. gnv-artifacts/trunk@898 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 09 Apr 2010 14:34:45 +0000
parents c4156275c1e1
children 05bf8534a35a
comparison
equal deleted inserted replaced
813:79c1db3ca7cc 814:9d427dd2a96a
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 * A container to store several statistics.
8 *
7 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> 9 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
8 *
9 */ 10 */
10 public class StatisticSet { 11 public class StatisticSet {
11 12
12 13
13 private String name = null; 14 private String name = null;
14 15
15 private Collection<Statistic> statistics = new ArrayList<Statistic>(); 16 private Collection<Statistic> statistics = new ArrayList<Statistic>();
16 17
17 /** 18 /**
18 * Constructor 19 * Constructor
20 * @param name Name of this container.
19 */ 21 */
20 public StatisticSet(String name) { 22 public StatisticSet(String name) {
21 this.name = name; 23 this.name = name;
22 } 24 }
23 25
24 26
27 /**
28 * Add a further statistic to this container.
29 *
30 * @param statistic A statistic.
31 */
25 public void addStatistic(Statistic statistic){ 32 public void addStatistic(Statistic statistic){
26 this.statistics.add(statistic); 33 this.statistics.add(statistic);
27 } 34 }
28 35
36 /**
37 * Returns all statistics in this container.
38 * @return all statistics.
39 */
29 public Collection<Statistic> getStatistics(){ 40 public Collection<Statistic> getStatistics(){
30 return this.statistics; 41 return this.statistics;
31 } 42 }
32 43
44 /**
45 * Returns the name of this container.
46 * @return the name.
47 */
33 public String getName(){ 48 public String getName(){
34 return this.name; 49 return this.name;
35 } 50 }
36
37 } 51 }
52 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org