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