org.broadinstitute.hellbender.utils.collections.HopscotchMultiMap Maven / Gradle / Ivy
The newest version!
package org.broadinstitute.hellbender.utils.collections;
import java.util.Collection;
import java.util.Map;
import java.util.function.Function;
/**
* A map that can contain multiple values for a given key.
*/
public class HopscotchMultiMap> extends HopscotchCollection {
public HopscotchMultiMap() {}
public HopscotchMultiMap( final int capacity ) { super(capacity); }
public HopscotchMultiMap( final Collection extends T> collection ) { super(collection); }
/**
* getKey returns the key part of a Map.Entry
*/
@Override
protected Function toKey() { return T::getKey; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy