org.psjava.ds.map.hashtable.OpenAddressingHashTableFactory 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
package org.psjava.ds.map.hashtable;
import org.psjava.ds.map.MutableMap;
import org.psjava.ds.map.MutableMapFactory;
public class OpenAddressingHashTableFactory {
private static final HashProber PROBING = LinearProbing.create();
private static final MutableMapFactory INSTANCE = new MutableMapFactory() {
@Override
public MutableMap create() {
return new OpenAddressingHashTable(PROBING, 1);
}
};
public static MutableMapFactory getInstance() {
return INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy