io.netty.util.collection.LongObjectMap Java Examples
The following examples show how to use
io.netty.util.collection.LongObjectMap.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SoftValueLongObjectHashMap.java From activemq-artemis with Apache License 2.0 | 5 votes |
/** * @param m * @see java.util.Map#putAll(java.util.Map) */ @Override public void putAll(final Map<? extends Long, ? extends V> m) { processQueue(); if (m instanceof LongObjectMap) { final LongObjectMap<? extends V> primitiveMap = (LongObjectMap<? extends V>) m; for (PrimitiveEntry<? extends V> entry : primitiveMap.entries()) { put(entry.key(), entry.value()); } } else { for (Map.Entry<? extends Long, ? extends V> e : m.entrySet()) { put(e.getKey(), e.getValue()); } } }