/** * Calls the appropriate {@link RyaTypeUtils} method based on the class * specified and initializes it with the supplied value. * @param classType the {@link Class} of {@link RyaType} to find. * @param value the value to initialize the {@link RyaType} with. * @return the {@link RyaType} or {@code null} if none could be found for * the specified {@code classType}. */ public static RyaType getRyaTypeForClass(final Class<?> classType, final Object value) { final RyaTypeMethod method = METHOD_MAP.get(classType); RyaType ryaType = null; if (method != null) { ryaType = method.callRyaTypeMethod(value); } return ryaType; } }
/** * Calls the appropriate {@link RyaTypeUtils} method based on the class * specified and initializes it with the supplied value. * @param classType the {@link Class} of {@link RyaType} to find. * @param value the value to initialize the {@link RyaType} with. * @return the {@link RyaType} or {@code null} if none could be found for * the specified {@code classType}. */ public static RyaType getRyaTypeForClass(final Class<?> classType, final Object value) { final RyaTypeMethod method = METHOD_MAP.get(classType); RyaType ryaType = null; if (method != null) { ryaType = method.callRyaTypeMethod(value); } return ryaType; } }