/** * Sets the default value for Float conversions. * @param newDefaultFloat The default Float value * @deprecated Register replacement converters for Float.TYPE and * Float.class instead */ @Deprecated public static void setDefaultFloat(final float newDefaultFloat) { ConvertUtilsBean.getInstance().setDefaultFloat(newDefaultFloat); }
/** * Sets the default value for Double conversions. * @param newDefaultDouble The default Double value * @deprecated Register replacement converters for Double.TYPE and * Double.class instead */ @Deprecated public static void setDefaultDouble(final double newDefaultDouble) { ConvertUtilsBean.getInstance().setDefaultDouble(newDefaultDouble); }
/** * Sets the default value for Integer conversions. * @param newDefaultInteger The default Integer value * @deprecated Register replacement converters for Integer.TYPE and * Integer.class instead */ @Deprecated public static void setDefaultInteger(final int newDefaultInteger) { ConvertUtilsBean.getInstance().setDefaultInteger(newDefaultInteger); }
/** * Sets the default value for Short conversions. * @param newDefaultShort The default Short value * @deprecated Register replacement converters for Short.TYPE and * Short.class instead */ @Deprecated public static void setDefaultShort(final short newDefaultShort) { ConvertUtilsBean.getInstance().setDefaultShort(newDefaultShort); }
/** * <p>Remove any registered {@link Converter} for the specified destination * <code>Class</code>.</p> * * <p>For more details see <code>ConvertUtilsBean</code>.</p> * * @param clazz Class for which to remove a registered Converter * @see ConvertUtilsBean#deregister(Class) */ public static void deregister(final Class<?> clazz) { ConvertUtilsBean.getInstance().deregister(clazz); }
/** * Gets the default value for Boolean conversions. * @return The default Boolean value * @deprecated Register replacement converters for Boolean.TYPE and * Boolean.class instead */ @Deprecated public static boolean getDefaultBoolean() { return (ConvertUtilsBean.getInstance().getDefaultBoolean()); }
/** * Gets the default value for Byte conversions. * @return The default Byte value * @deprecated Register replacement converters for Byte.TYPE and * Byte.class instead */ @Deprecated public static byte getDefaultByte() { return ConvertUtilsBean.getInstance().getDefaultByte(); }
/** * Get the default value for Float conversions. * @return The default Float value * @deprecated Register replacement converters for Float.TYPE and * Float.class instead */ @Deprecated public static float getDefaultFloat() { return ConvertUtilsBean.getInstance().getDefaultFloat(); }
/** * Gets the default value for Integer conversions. * @return The default Integer value * @deprecated Register replacement converters for Integer.TYPE and * Integer.class instead */ @Deprecated public static int getDefaultInteger() { return ConvertUtilsBean.getInstance().getDefaultInteger(); }
/** * Gets the default value for Long conversions. * @return The default Long value * @deprecated Register replacement converters for Long.TYPE and * Long.class instead */ @Deprecated public static long getDefaultLong() { return (ConvertUtilsBean.getInstance().getDefaultLong()); }
/** * Sets the default value for Byte conversions. * @param newDefaultByte The default Byte value * @deprecated Register replacement converters for Byte.TYPE and * Byte.class instead */ @Deprecated public static void setDefaultByte(final byte newDefaultByte) { ConvertUtilsBean.getInstance().setDefaultByte(newDefaultByte); }
/** * Sets the default value for Character conversions. * @param newDefaultCharacter The default Character value * @deprecated Register replacement converters for Character.TYPE and * Character.class instead */ @Deprecated public static void setDefaultCharacter(final char newDefaultCharacter) { ConvertUtilsBean.getInstance().setDefaultCharacter(newDefaultCharacter); }
/** * Gets the default value for Double conversions. * @return The default Double value * @deprecated Register replacement converters for Double.TYPE and * Double.class instead */ @Deprecated public static double getDefaultDouble() { return ConvertUtilsBean.getInstance().getDefaultDouble(); }
/** * Sets the default value for Long conversions. * @param newDefaultLong The default Long value * @deprecated Register replacement converters for Long.TYPE and * Long.class instead */ @Deprecated public static void setDefaultLong(final long newDefaultLong) { ConvertUtilsBean.getInstance().setDefaultLong(newDefaultLong); }
/** * <p>Remove all registered {@link Converter}s, and re-establish the * standard Converters.</p> * * <p>For more details see <code>ConvertUtilsBean</code>.</p> * * @see ConvertUtilsBean#deregister() */ public static void deregister() { ConvertUtilsBean.getInstance().deregister(); }
/** * Look up and return any registered {@link Converter} for the specified * source and destination class; if there is no registered Converter, * return <code>null</code>. * * @param sourceType Class of the value being converted * @param targetType Class of the value to be converted to * @return The registered {@link Converter} or <code>null</code> if not found */ public static Converter lookup(final Class<?> sourceType, final Class<?> targetType) { return ConvertUtilsBean.getInstance().lookup(sourceType, targetType); }
/** * Sets the default value for Byte conversions. * @param newDefaultByte The default Byte value * @deprecated Register replacement converters for Byte.TYPE and * Byte.class instead */ @Deprecated public static void setDefaultByte(final byte newDefaultByte) { ConvertUtilsBean.getInstance().setDefaultByte(newDefaultByte); }
/** * Get the default value for Float conversions. * @return The default Float value * @deprecated Register replacement converters for Float.TYPE and * Float.class instead */ @Deprecated public static float getDefaultFloat() { return ConvertUtilsBean.getInstance().getDefaultFloat(); }
/** * Sets the default value for Long conversions. * @param newDefaultLong The default Long value * @deprecated Register replacement converters for Long.TYPE and * Long.class instead */ @Deprecated public static void setDefaultLong(final long newDefaultLong) { ConvertUtilsBean.getInstance().setDefaultLong(newDefaultLong); }
/** * <p>Remove any registered {@link Converter} for the specified destination * <code>Class</code>.</p> * * <p>For more details see <code>ConvertUtilsBean</code>.</p> * * @param clazz Class for which to remove a registered Converter * @see ConvertUtilsBean#deregister(Class) */ public static void deregister(final Class<?> clazz) { ConvertUtilsBean.getInstance().deregister(clazz); }