public class SexagesimalToDegrees extends Object implements ValueConverter
Constructor and Description |
---|
SexagesimalToDegrees(ValueInfo sexInfo,
boolean hours) |
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object in)
Performs a conversion from the input type to the output type.
|
ValueInfo |
getInputInfo()
Returns metadata describing the values on the input end of the
conversion.
|
ValueInfo |
getOutputInfo()
Returns metadata describing the values on the output end of the
conversion.
|
String |
toString() |
Object |
unconvert(Object out)
Performs a reverse conversion, from the output type to the input type.
|
public SexagesimalToDegrees(ValueInfo sexInfo, boolean hours)
sexInfo
- info for data in sexagesimal formathours
- true for H:M:S, false for D:M:Spublic ValueInfo getInputInfo()
ValueConverter
getInputInfo
in interface ValueConverter
public ValueInfo getOutputInfo()
ValueConverter
getOutputInfo
in interface ValueConverter
public Object convert(Object in)
ValueConverter
convert
in interface ValueConverter
in
- object of input typepublic Object unconvert(Object out)
ValueConverter
unconvert
in interface ValueConverter
out
- object of output typeCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.