cucumber.runtime.converters
Class ConverterWithNumberFormat<T extends Number>
java.lang.Object
cucumber.runtime.converters.ConverterWithFormat<T>
cucumber.runtime.converters.ConverterWithNumberFormat<T>
- All Implemented Interfaces:
- com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter
- Direct Known Subclasses:
- BigDecimalConverter, BigIntegerConverter, ByteConverter, DoubleConverter, FloatConverter, IntegerConverter, LongConverter, ShortConverter
public abstract class ConverterWithNumberFormat<T extends Number>
- extends ConverterWithFormat<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConverterWithNumberFormat
public ConverterWithNumberFormat(Locale locale,
Class[] convertibleTypes)
fromString
public T fromString(String string)
- Specified by:
fromString
in interface com.thoughtworks.xstream.converters.SingleValueConverter
- Overrides:
fromString
in class ConverterWithFormat<T extends Number>
getFormats
public List<NumberFormat> getFormats()
- Specified by:
getFormats
in class ConverterWithFormat<T extends Number>
- Returns:
- A Format to parse the argument
downcast
protected abstract T downcast(Number argument)
Copyright © 2012. All Rights Reserved.