* @return The FastHashMap instance contains the all {@link LocaleConverter} types
* for the specified locale.
*/
protected FastHashMap create(Locale locale) {
FastHashMap converter = new FastHashMap();
converter.setFast(false);
converter.put(BigDecimal.class, new BigDecimalLocaleConverter(locale, applyLocalized));
converter.put(BigInteger.class, new BigIntegerLocaleConverter(locale, applyLocalized));
converter.put(Byte.class, new ByteLocaleConverter(locale, applyLocalized));
converter.put(Byte.TYPE, new ByteLocaleConverter(locale, applyLocalized));
converter.put(Double.class, new DoubleLocaleConverter(locale, applyLocalized));
converter.put(Double.TYPE, new DoubleLocaleConverter(locale, applyLocalized));
converter.put(Float.class, new FloatLocaleConverter(locale, applyLocalized));
converter.put(Float.TYPE, new FloatLocaleConverter(locale, applyLocalized));
converter.put(Integer.class, new IntegerLocaleConverter(locale, applyLocalized));
converter.put(Integer.TYPE, new IntegerLocaleConverter(locale, applyLocalized));
converter.put(Long.class, new LongLocaleConverter(locale, applyLocalized));
converter.put(Long.TYPE, new LongLocaleConverter(locale, applyLocalized));
converter.put(Short.class, new ShortLocaleConverter(locale, applyLocalized));
converter.put(Short.TYPE, new ShortLocaleConverter(locale, applyLocalized));
converter.put(String.class, new StringLocaleConverter(locale, applyLocalized));
// conversion format patterns of java.sql.* types should correspond to default
// behaviour of toString and valueOf methods of these classes
converter.put(java.sql.Date.class, new SqlDateLocaleConverter(locale, "yyyy-MM-dd"));
converter.put(java.sql.Time.class, new SqlTimeLocaleConverter(locale, "HH:mm:ss"));
converter.put( java.sql.Timestamp.class,
new SqlTimestampLocaleConverter(locale, "yyyy-MM-dd HH:mm:ss.S")
);
converter.setFast(true);
return converter;
}