|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.convert.SexagesimalToDegrees
public class SexagesimalToDegrees
Converts between Strings in sexagesimal format and numeric values in degrees.
Constructor Summary | |
---|---|
SexagesimalToDegrees(ValueInfo sexInfo,
boolean hours)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SexagesimalToDegrees(ValueInfo sexInfo, boolean hours)
sexInfo
- info for data in sexagesimal formathours
- true for H:M:S, false for D:M:SMethod Detail |
---|
public 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 type
public Object unconvert(Object out)
ValueConverter
unconvert
in interface ValueConverter
out
- object of output type
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |