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 TypeMethodDescriptiondoubleconvertValue(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:ValueConverterConverts a string value to a numeric for this format- Specified by:
convertValuein classValueConverter- Parameters:
sval- string value- Returns:
- numeric equivalent of
sval
-
unconvertValue
Description copied from class:ValueConverterConverts a numeric value to a string value for this format.- Specified by:
unconvertValuein classValueConverter- Parameters:
dval- numeric value- Returns:
- string representation of
dval
-