The fromString constructor must take a single String parameter.
ConstructorFromStringConverter is thread-safe and immutable.
| Modifier and Type | Field and Description |
|---|---|
| private final Constructor | fromString
Conversion from a string. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ConstructorFromStringConverter(Class<T>
the class this converts for, not null cls, Constructor<T> the fromString method, not null fromString)Creates an instance using a method and a constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public T | convertFromString(Class<? extends T>
the class to convert to, not null cls, String the string to convert, not null str)Implements org. String.
|
| public Class | getEffectiveType()
Implements org. |
| fromString | back to summary |
|---|---|
| private final Constructor<T> fromString Conversion from a string. | |
| ConstructorFromStringConverter | back to summary |
|---|---|
| pack-priv ConstructorFromStringConverter(Class<T> cls, Constructor<T> fromString) Creates an instance using a method and a constructor.
| |
| convertFromString | back to summary |
|---|---|
| public T convertFromString(Class<? extends T> cls, String str) Implements org. Doc from org. Converts the specified object from a | |
| getEffectiveType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Gets the effective type that the converter works on.
For example, if a class declares the | |