vertx / io.vertx.core.cli.converters / FromStringBasedConverter / getIfEligible

# getIfEligible

`static fun <T : Any> getIfEligible(clazz: Class<T>): FromStringBasedConverter<T>`

Checks whether the given class can be used by the FromStringBasedConverter (i.e. has a static 'fromString' method taking a single String as argument). If so, creates a new instance of converter for this type.

### Parameters

`clazz` - the class

Return
a FromStringBasedConverter if the given class is eligible, null otherwise.