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

com.github.liblevenshtein.distance.factory.IDistanceFactory Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
package com.github.liblevenshtein.distance.factory;

import java.io.Serializable;

import com.github.liblevenshtein.distance.IDistance;
import com.github.liblevenshtein.transducer.Algorithm;

/**
 * Builds instances of Levenshtein distance metrics.
 * @author Dylon Edwards
 * @param  Type of the terms whose distances are measurable.
 * @since 2.1.0
 */
public interface IDistanceFactory extends Serializable {

  /**
   * Returns a Levenshtein distance metric that utilizes the request algorithm.
   * @param algorithm Type of metric that should be returned
   * @return A distance metric that utilizes the request alagorithm
   */
  IDistance build(Algorithm algorithm);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy