fx-inject-core/src/main/java/com/cathive/fx/inject/core/FXMLComponentBuilder.java
private StringConverter<?> getStringConverter(final Class<?> valueClass) {
        Class<? extends StringConverter<?>> aClass = StringConverterRetriever.retrieveConverterFor(valueClass);
        if (aClass == null) {
            throw new IllegalArgumentException(String.format("Can't find StringConverter for class '%s'.", valueClass.getName()));
        }
        try {
            return aClass.newInstance();
        } catch (final InstantiationException | IllegalAccessException e) {
            throw new IllegalStateException(e);
        }
    }
private StringConverter<?> getStringConverter(final Class<?> valueClass) {
        Class<? extends StringConverter<?>> aClass = StringConverterRetriever.retrieveConverterFor(valueClass);
        if (aClass == null) {
            throw new IllegalArgumentException(String.format("Can't find StringConverter for class '%s'.", valueClass.getName()));
        }
        try {
            return aClass.newInstance();
        } catch (final InstantiationException | IllegalAccessException e) {
            throw new IllegalStateException(e);
        }
    }
private StringConverter < ? > getStringConverter ( final Class < ? > valueClass ) { Class < ? extends StringConverter < ? > > aClass = StringConverterRetriever . retrieveConverterFor ( valueClass ) ; if ( aClass == null ) { throw new IllegalArgumentException ( String . format ( "Can't find StringConverter for class '%s'." , valueClass . getName ( ) ) ) ; } try { return aClass . newInstance ( ) ; } catch ( final InstantiationException | IllegalAccessException e ) { throw new IllegalStateException ( e ) ; } }
Retrieves a {@link javafx.util.StringConverter} instance for the given class.
@param valueClass
Class to be used when looking for a matching string converter.
@return
A string converter that can handle values of the given class.
Retrieves a {