Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/statistics/Statistic.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | 7fb9441dd8af |
children | 9d427dd2a96a |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 /** | |
2 * Title: Statistic, $Header: /share/gdi/SDI-Suite/Repository/projekte/BSH-GDI/genericViewer/src/main/java/de/conterra/bsh/gdi/gnviewer/output/statistics/Statistic.java,v 1.2 2007/12/21 12:31:15 blume Exp $ | |
3 * Source: $Source: /share/gdi/SDI-Suite/Repository/projekte/BSH-GDI/genericViewer/src/main/java/de/conterra/bsh/gdi/gnviewer/output/statistics/Statistic.java,v $ | |
4 * created by: Stefan Blume (blume) | |
5 * erstellt am: 14.12.2007 | |
6 * Copyright: con terra GmbH, 2005 | |
7 * | |
8 * modified by: $Author: blume $ | |
9 * modified on: $Date: 2007/12/21 12:31:15 $ | |
10 * Version: $Revision: 1.2 $ | |
11 * TAG: $Name: $ | |
12 * locked from: $Locker: $ | |
13 * CVS State: $State: Exp $ | |
14 * Project: $ProjectName$ | |
15 */ | |
16 package de.intevation.gnv.statistics; | |
17 | |
18 import org.apache.log4j.Logger; | |
19 | |
20 /** | |
21 * The class <code>Statistic</code> fulfills the following purposes: | |
22 * <ol> | |
23 * <li></li> | |
24 * </ol> | |
25 * | |
26 * @author blume | |
27 * @version 1.0 | |
28 * @serial 1.0 | |
29 * @see | |
30 * @since 14.12.2007 09:38:18 | |
31 */ | |
32 public class Statistic { | |
33 | |
34 /** | |
35 * Default Logging instance | |
36 */ | |
37 private static Logger sLogger = Logger.getLogger(Statistic.class); | |
38 private static boolean sDebug = sLogger.isDebugEnabled(); | |
39 | |
40 private double mValue; | |
41 private String mKey; | |
42 | |
43 public Statistic(String pKey, double pValue) { | |
44 mKey = pKey; | |
45 mValue = pValue; | |
46 } | |
47 | |
48 public double getValue() { | |
49 return mValue; | |
50 } | |
51 | |
52 public String getKey() { | |
53 return mKey; | |
54 } | |
55 | |
56 public String getStringValue() { | |
57 java.text.DecimalFormat df = new java.text.DecimalFormat("#.##"); | |
58 return df.format(mValue); | |
59 } | |
60 | |
61 } |