@Test public void testStringData4() { final int count = 100000; final ObjectHashMap map = new ObjectHashMap(); assertNotNull( map ); for ( int idx = 0; idx < count; idx++ ) { final String key = "key" + idx; final String strval = "value" + idx; map.put( key, strval ); } final long start = System.currentTimeMillis(); final org.drools.core.util.Iterator itr = map.iterator(); Object val = null; while ( (val = itr.next()) != null ) { val.hashCode(); } final long end = System.currentTimeMillis(); System.out.println( "Custom ObjectHashMap iterate ET - " + ((end - start)) ); }
public Object put(final Object key, final Object value) { return put( key, value, true ); }
ObjectHashMap extends AbstractHashTable implements Externalizable { public Object put(final Object key, final Object value) { return put( key, value, true ); } }
ObjectHashMap extends AbstractHashTable implements Externalizable { public Object put(final Object key, final Object value) { return put( key, value, true ); } ObjectHashMap();  ObjectHashMap(final int capacity,
                         final float loadFactor);  ObjectHashMap(final Entry[] table);  ObjectHashMap(final float loadFactor,
                         final Entry[] table); }
ObjectHashMap extends AbstractHashTable implements Externalizable { public Object put(final Object key, final Object value) { return put( key, value, true ); } ObjectHashMap();  ObjectHashMap(final int capacity,
                         final float loadFactor);  ObjectHashMap(final Entry[] table);  ObjectHashMap(final float loadFactor,
                         final Entry[] table); Object put(final Object key,
                      final Object value); Object put(final Object key,
                      final Object value,
                      final boolean checkExists); Object get(final Object key); Object remove(final Object key); Entry getBucket(final Object object); @Override int getResizeHashcode(Entry entry); }
ObjectHashMap extends AbstractHashTable implements Externalizable { public Object put(final Object key, final Object value) { return put( key, value, true ); } ObjectHashMap();  ObjectHashMap(final int capacity,
                         final float loadFactor);  ObjectHashMap(final Entry[] table);  ObjectHashMap(final float loadFactor,
                         final Entry[] table); Object put(final Object key,
                      final Object value); Object put(final Object key,
                      final Object value,
                      final boolean checkExists); Object get(final Object key); Object remove(final Object key); Entry getBucket(final Object object); @Override int getResizeHashcode(Entry entry);  }