congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MultiMap.entrySet
Code IndexAdd Tabnine to your IDE (free)

How to use
entrySet
method
in
org.apache.commons.collections4.MultiMap

Best Java code snippets using org.apache.commons.collections4.MultiMap.entrySet (Showing top 2 results out of 315)

origin: org.apache.commons/commons-collections4

/**
 * Override superclass to ensure that MultiMap instances are
 * correctly handled.
 * <p>
 * If you call this method with a normal map, each entry is
 * added using <code>put(Object,Object)</code>.
 * If you call this method with a multi map, each entry is
 * added using <code>putAll(Object,Collection)</code>.
 *
 * @param map  the map to copy (either a normal or multi map)
 */
@Override
@SuppressWarnings("unchecked")
public void putAll(final Map<? extends K, ?> map) {
  if (map instanceof MultiMap) {
    for (final Map.Entry<? extends K, Object> entry : ((MultiMap<? extends K, V>) map).entrySet()) {
      putAll(entry.getKey(), (Collection<V>) entry.getValue());
    }
  } else {
    for (final Map.Entry<? extends K, ?> entry : map.entrySet()) {
      put(entry.getKey(), entry.getValue());
    }
  }
}
origin: info.magnolia.cache/magnolia-cache-core

private void writeObject(ObjectOutputStream out) throws IOException {
  serializableHeadersBackingList = new HashMap();
  Iterator iter = headers.entrySet().iterator();
  while (iter.hasNext()) {
    Map.Entry entry = (Entry) iter.next();
    serializableHeadersBackingList.put(entry.getKey(), new ArrayList((Collection)entry.getValue()));
  }
  out.defaultWriteObject();
}
org.apache.commons.collections4MultiMapentrySet

Popular methods of MultiMap

  • get
    Gets the collection of values associated with the specified key. The returned value will implement C
  • put
    Adds the value to the collection associated with the specified key. Unlike a normal Map the previous
  • clear
  • containsKey
  • keySet
  • remove
    Removes all values associated with the specified key. Implementations typically return null from a s

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ImageIO (javax.imageio)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now