Package uk.ac.starlink.vo
Class ValueConverter.HMSDegreesValueConverter
java.lang.Object
uk.ac.starlink.vo.ValueConverter
uk.ac.starlink.vo.ValueConverter.HMSDegreesValueConverter
- Enclosing class:
- ValueConverter
Converter for hours:minute:seconds format.
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.starlink.vo.ValueConverter
ValueConverter.DMSDegreesValueConverter, ValueConverter.HMSDegreesValueConverter, ValueConverter.UnitValueConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
convertValue
(String sval) Converts a string value to a numeric for this formatunconvertValue
(double dval) Converts a numeric value to a string value for this format.Methods inherited from class uk.ac.starlink.vo.ValueConverter
getName, toString
-
Constructor Details
-
HMSDegreesValueConverter
public HMSDegreesValueConverter()
-
-
Method Details
-
convertValue
Description copied from class:ValueConverter
Converts a string value to a numeric for this format- Specified by:
convertValue
in classValueConverter
- Parameters:
sval
- string value- Returns:
- numeric equivalent of sval
-
unconvertValue
Description copied from class:ValueConverter
Converts a numeric value to a string value for this format.- Specified by:
unconvertValue
in classValueConverter
- Parameters:
dval
- numeric value- Returns:
- string representation of dval
-