All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tvd12.reflections.util.HashMultimap Maven / Gradle / Ivy

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> 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