com.tvd12.reflections.util.HashMultimap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reflections Show documentation
Show all versions of reflections Show documentation
Reflections - a Java runtime metadata analysis
The newest version!
package com.tvd12.reflections.util;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.function.Supplier;
public class HashMultimap extends AbstractMultimap {
public HashMultimap(
Map> map,
Supplier extends Collection> factory) {
super(map, factory);
}
public static HashMultimap create() {
return new HashMultimap(
new HashMap<>(),
new Supplier>() {
@Override
public Set get() {
return new HashSet<>();
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy