comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/NamedDouble.java @ 1087:22149b0545b9

New NamedDouble class which implements a <String,double>-pair. flys-artifacts/trunk@2590 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 26 Aug 2011 11:10:31 +0000
parents
children 4bd3d8bbb60c
comparison
equal deleted inserted replaced
1086:825ea312116d 1087:22149b0545b9
1 package de.intevation.flys.artifacts.model;
2
3 /**
4 * Implementation of a <String,double> pair.
5 */
6 public class NamedDouble
7 extends NamedObjectImpl
8 {
9 protected double value;
10
11
12 /**
13 * @param name name for the given value.
14 * @param value value.
15 */
16 public NamedDouble(String name, double value) {
17 super(name);
18 this.value = value;
19 }
20
21
22 /**
23 * Get the value.
24 * @return the value.
25 */
26 public double getValue() {
27 return this.value;
28 }
29 }

http://dive4elements.wald.intevation.org