/** * Registers new type to be used with this converter instance. * @param type {@link Class} type to register * @return <code>true</code> if type was registed, else <code>false</code> (in case type was registered already or * type is not eligible for registering ie. missing required annotations) */ public boolean registerType(Class<?> type) { if (!configuration.isRegisteredType(type) && ConverterConfiguration.isEligibleType(type)) { return configuration.registerType(type); } return false; }
/** * Registers new type to be used with this converter instance. * @param type {@link Class} type to register * @return <code>true</code> if type was registed, else <code>false</code> (in case type was registered already or * type is not eligible for registering ie. missing required annotations) */ public boolean registerType(Class<?> type) { if (!configuration.isRegisteredType(type) && ConverterConfiguration.isEligibleType(type)) { return configuration.registerType(type); } return false; }