org.psjava.ds.map.hashtable.OpenAddressingHashTableMapFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of psjava Show documentation
Show all versions of psjava Show documentation
Problem Solving Library for Java
The newest version!
package org.psjava.ds.map.hashtable;
import org.psjava.ds.map.MutableMap;
import org.psjava.ds.map.MutableMapFactory;
public class OpenAddressingHashTableMapFactory {
private static final HashProber PROBING = LinearProbing.create();
private static final MutableMapFactory INSTANCE = new MutableMapFactory() {
@Override
public MutableMap create() {
return new OpenAddressingHashTableMap(PROBING, 1);
}
};
public static MutableMapFactory getInstance() {
return INSTANCE;
}
private OpenAddressingHashTableMapFactory() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy