Package com.beust.jcommander
Interface IStringConverter<T>
- All Known Implementing Classes:
BaseConverter,BigDecimalConverter,BooleanConverter,ByteOrderConverter,CharArrayConverter,CharsetConverter,DefaultListConverter,DoubleConverter,EnumConverter,FileConverter,FloatConverter,InetAddressConverter,InstantConverter,IntegerConverter,ISO8601DateConverter,JavaTimeConverter,LocalDateConverter,LocalDateTimeConverter,LocalTimeConverter,LongConverter,NoConverter,OffsetDateTimeConverter,OffsetTimeConverter,PathConverter,StringConverter,URIConverter,URLConverter,ZonedDateTimeConverter
public interface IStringConverter<T>
An interface that converts strings to any arbitrary type.
If your class implements a constructor that takes a String, this
constructor will be used to instantiate your converter and the
parameter will receive the name of the option that's being parsed,
which can be useful to issue a more useful error message if the
conversion fails.
You can also extend BaseConverter to make your life easier.
-
Method Summary
-
Method Details
-
convert
- Returns:
- an object of type T created from the parameter value.
-