org.conqat.lib.commons.collections.IdentitySetMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-lib-commons Show documentation
Show all versions of teamscale-lib-commons Show documentation
Provides common utility functions
package org.conqat.lib.commons.collections;
import java.util.IdentityHashMap;
import java.util.Map;
import java.util.Set;
/**
* Variant of the {@link SetMap} that compares keys by reference instead of equality.
*/
public class IdentitySetMap extends SetMap {
private static final long serialVersionUID = 1L;
@Override
protected Map> createUnderlyingMap() {
return new IdentityHashMap<>();
}
}