Examples of FastHashMap


Examples of org.apache.commons.collections.FastHashMap

     */

    protected static FastHashMap lookup(Locale locale) {

        FastHashMap localeConverters;



        if (locale == null) {

View Full Code Here

Examples of org.apache.commons.collections.FastHashMap

    protected static 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));



        converter.put(Date.class, new SqlDateLocaleConverter(locale, applyLocalized));

        converter.put(Time.class, new SqlTimeLocaleConverter(locale, applyLocalized));

        converter.put(Timestamp.class, new SqlTimestampLocaleConverter(locale, applyLocalized));



        converter.setFast(true);



        return converter;
View Full Code Here

Examples of org.apache.commons.collections.FastHashMap

                }
            }
        }

        PropertyDescriptor result = null;
        FastHashMap mappedDescriptors =
                getMappedPropertyDescriptors(bean);
        if (mappedDescriptors == null) {
            mappedDescriptors = new FastHashMap();
            mappedDescriptors.setFast(true);
            mappedDescriptorsCache.put(bean.getClass(), mappedDescriptors);
        }
        result = (PropertyDescriptor) mappedDescriptors.get(name);
        if (result == null) {
            // not found, try to create it
            try {
                result = new MappedPropertyDescriptor(name, bean.getClass());
            } catch (IntrospectionException ie) {
                /* Swallow IntrospectionException
                 * TODO: Why?
                 */
            }
            if (result != null) {
                mappedDescriptors.put(name, result);
            }
        }
       
        return result;

View Full Code Here

Examples of org.apache.commons.collections15.map.FastHashMap

        String[] testCaseName = {TestFastHashMap1.class.getName()};
        junit.textui.TestRunner.main(testCaseName);
    }

    public Map makeEmptyMap() {
        FastHashMap fhm = new FastHashMap();
        fhm.setFast(true);
        return (fhm);
    }
View Full Code Here

Examples of org.apache.commons.collections15.map.FastHashMap

        String[] testCaseName = {TestFastHashMap.class.getName()};
        junit.textui.TestRunner.main(testCaseName);
    }

    public Map makeEmptyMap() {
        FastHashMap fhm = new FastHashMap();
        fhm.setFast(false);
        return (fhm);
    }
View Full Code Here

Examples of org.hibernate.util.FastHashMap

  // map of EntityMode -> Tuplizer
  private final Map tuplizers;

  public EntityModeToTuplizerMapping() {
    tuplizers = new FastHashMap();
  }
View Full Code Here

Examples of org.hibernate.util.FastHashMap

    return ctor;
  }

  private static Map buildBaseMapping() {
    Map map = new FastHashMap();
    map.put( EntityMode.POJO, PojoEntityTuplizer.class );
    map.put( EntityMode.DOM4J, Dom4jEntityTuplizer.class );
    map.put( EntityMode.MAP, DynamicMapEntityTuplizer.class );
    return map;
  }
View Full Code Here

Examples of org.hibernate.util.FastHashMap

    return ctor;
  }

  private static Map buildBaseMapping() {
    Map map = new FastHashMap();
    map.put( EntityMode.POJO, PojoComponentTuplizer.class );
    map.put( EntityMode.DOM4J, Dom4jComponentTuplizer.class );
    map.put( EntityMode.MAP, DynamicMapComponentTuplizer.class );
    return map;
  }
View Full Code Here

Examples of org.hibernate.util.FastHashMap

  // map of EntityMode -> Tuplizer
  private final Map tuplizers;

  public EntityModeToTuplizerMapping() {
    tuplizers = new FastHashMap();
  }
View Full Code Here

Examples of org.hibernate.util.FastHashMap

  // map of EntityMode -> Tuplizer
  private final Map tuplizers;

  public EntityModeToTuplizerMapping() {
    tuplizers = new FastHashMap();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.