class StringToJavaTimeConverter extends java.lang.Object implements StringToObjectConverter
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.Class<?>,java.util.function.Function<java.lang.String,?>> |
CONVERTERS |
| Constructor and Description |
|---|
StringToJavaTimeConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(java.lang.Class<?> targetType)
Determine if this converter can convert from a
String to the
supplied target type (which is guaranteed to be a wrapper type for
primitives — for example, Integer instead of int). |
java.lang.Object |
convert(java.lang.String source,
java.lang.Class<?> targetType)
Convert the supplied
String to the supplied target type (which is
guaranteed to be a wrapper type for primitives — for example,
Integer instead of int). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertprivate static final java.util.Map<java.lang.Class<?>,java.util.function.Function<java.lang.String,?>> CONVERTERS
public boolean canConvert(java.lang.Class<?> targetType)
StringToObjectConverterString to the
supplied target type (which is guaranteed to be a wrapper type for
primitives — for example, Integer instead of int).canConvert in interface StringToObjectConverterpublic java.lang.Object convert(java.lang.String source,
java.lang.Class<?> targetType)
throws java.lang.Exception
StringToObjectConverterString to the supplied target type (which is
guaranteed to be a wrapper type for primitives — for example,
Integer instead of int).convert in interface StringToObjectConverterjava.lang.Exception