/** * Checks if provided type is registered with this converter instance. * @param type class to check * @return returns <code>true</code> if type is registered, else <code>false</code> */ public boolean isRegisteredType(Class<?> type) { return configuration.isRegisteredType(type); }
/** * Checks if provided type is registered with this converter instance. * @param type class to check * @return returns <code>true</code> if type is registered, else <code>false</code> */ public boolean isRegisteredType(Class<?> type) { return configuration.isRegisteredType(type); }
/** * Registers new type with this configuration instance. * @param type {@link Class} type to register * @return <code>true</code> in case type was registered, <code>false</code> in case type was registered already */ public synchronized boolean registerType(Class<?> type) { if (!isRegisteredType(type)) { processClass(type); return true; } return false; }
/** * Registers new type with this configuration instance. * @param type {@link Class} type to register * @return <code>true</code> in case type was registered, <code>false</code> in case type was registered already */ public synchronized boolean registerType(Class<?> type) { if (!isRegisteredType(type)) { processClass(type); return true; } 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; }
/** * 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; }