/** * Creates a new <code>THashMap</code> instance which contains the * key/value pairs in <tt>map</tt>. * * @param map a <code>Map</code> value */ public THashMap(Map map) { this(map.size()); putAll(map); }
/** * Creates a new <code>THashMap</code> instance which contains the * key/value pairs in <tt>map</tt>. * * @param map a <code>Map</code> value * @param strategy used to compute hash codes and to compare objects. */ public THashMap(Map map, TObjectHashingStrategy strategy) { this(map.size(), strategy); putAll(map); }
public final void addToBePublishedEvents(THashMap events) { if (this.eventsToBePublished != null) { if (events != null && !events.isEmpty()) { this.eventsToBePublished.putAll(events); } } else { this.eventsToBePublished = events != null && !events.isEmpty() ? events : null; } }
for (Map<String, TObjectLongHashMapDSFID> events : eventsToBeDispatched.values()) { tailKeys.putAll(events);