T - the built type.public final class FromBasedConverter<T> extends Object implements Converter<T>
| Modifier and Type | Method and Description | 
|---|---|
T | 
fromString(String input)
Converts the given input to an object by using the 'from' method. 
 | 
static <T> FromBasedConverter<T> | 
getIfEligible(Class<T> clazz)
Checks whether the given class can be used by the  
FromBasedConverter (i.e. | 
public static final String FROM
public static <T> FromBasedConverter<T> getIfEligible(Class<T> clazz)
FromBasedConverter (i.e. has a static 'from' method
 taking a single String as argument). If so, creates a new instance of converter for this type.clazz - the classFromBasedConverter if the given class is eligible,
 null otherwise.public T fromString(String input) throws IllegalArgumentException
fromString in interface Converter<T>input - the input, can be nullIllegalArgumentException - if the instance of T cannot be created from the input.Copyright © 2023 Eclipse. All rights reserved.