public class IntervalConverter extends Object implements Converter<ValueRange>
Constructor and Description |
---|
IntervalConverter() |
Modifier and Type | Method and Description |
---|---|
String |
format(ValueRange value)
Converts a value of the type returned by
Converter.getValueType() to its
plain text representation. |
Class<ValueRange> |
getValueType()
Gets the value type.
|
ValueRange |
parse(String text)
Converts a value from its plain text representation to a Java object instance
of the type returned by
Converter.getValueType() . |
public Class<ValueRange> getValueType()
Converter
getValueType
in interface Converter<ValueRange>
public ValueRange parse(String text) throws ConversionException
Converter
Converter.getValueType()
.parse
in interface Converter<ValueRange>
text
- The textual representation of the value.ConversionException
- If the conversion fails.public String format(ValueRange value)
Converter
Converter.getValueType()
to its
plain text representation.format
in interface Converter<ValueRange>
value
- The value to be converted to text.Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.