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

getIfEligible

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

Checks whether the given class can be used by the 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.

Parameters

clazz - the class

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