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

# getIfEligible

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

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

### Parameters

`clazz` - the class

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