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

getIfEligible

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

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

Parameters

clazz - the class

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