| Modifier and Type | Field and Description |
|---|---|
| private final Constructor |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: the instance of Tthe input, can be null input)Implements io. Converts the given input to an object by using the constructor approach. |
| public static <T> ConstructorBasedConverter | Returns: aConstructorBasedConverter if the given class is eligible,
null otherwise.the class clazz)Checks whether the given class can be used by the |
| constructor | back to summary |
|---|---|
| private final Constructor<T> constructor | |
| ConstructorBasedConverter | back to summary |
|---|---|
| private ConstructorBasedConverter(Constructor<T> constructor) | |
| fromString | back to summary |
|---|---|
| public T fromString(String input) throws IllegalArgumentException Implements io. Converts the given input to an object by using the constructor approach. Notice that the constructor must expect receiving a null value.
| |
| getIfEligible | back to summary |
|---|---|
| public static <T> ConstructorBasedConverter Checks whether the given class can be used by the
| |