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

org.psjava.ds.map.hashtable.OpenAddressingHashTableMapFactory Maven / Gradle / Ivy

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