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

com.algolia.search.models.dictionary.Dictionary Maven / Gradle / Ivy

The newest version!
package com.algolia.search.models.dictionary;

/** Represents a linguistic resources provided by Algolia. */
public enum Dictionary {
  PLURALS("plurals", Plural.class),
  STOPWORDS("stopwords", Stopword.class),
  COMPOUNDS("compounds", Compound.class);

  private final String name;
  private final Class entry;

  Dictionary(String name, Class entryType) {
    this.name = name;
    this.entry = entryType;
  }

  @Override
  public String toString() {
    return name;
  }

  public Class getEntry() {
    return entry;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy