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