axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change
on this file since 866c983 was
8780cbec,
checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago
|
ABAC sources from Cobham
|
-
Property mode set to
100644
|
File size:
543 bytes
|
Rev | Line | |
---|
[8780cbec] | 1 | package edu.stanford.rt.datatype; |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | An object which holds an double value. |
---|
| 5 | |
---|
| 6 | TODO |
---|
| 7 | */ |
---|
| 8 | public class DecimalValue implements DataValue |
---|
| 9 | { |
---|
| 10 | double value; |
---|
| 11 | |
---|
| 12 | public DecimalValue(String value) |
---|
| 13 | { |
---|
| 14 | this.value = Double.parseDouble(value); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | public DecimalValue(double value) |
---|
| 18 | { |
---|
| 19 | this.value = value; |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | public double getValue() |
---|
| 23 | { |
---|
| 24 | return value; |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | public String toString() |
---|
| 28 | { |
---|
| 29 | return String.valueOf(value); |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.