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

org.carrot2.dcs.model.ListResponse Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
/*
 * Carrot2 project.
 *
 * Copyright (C) 2002-2020, Dawid Weiss, Stanisław Osiński.
 * All rights reserved.
 *
 * Refer to the full license file "carrot2.LICENSE"
 * in the root folder of the repository checkout or at:
 * https://www.carrot2.org/carrot2.LICENSE
 */
package org.carrot2.dcs.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.List;
import java.util.Map;

@JsonPropertyOrder({"algorithms", "templates"})
public class ListResponse {
  /** A map of algorithm names and their supported languages. */
  @JsonProperty public Map> algorithms;

  @JsonProperty public List templates;

  @JsonCreator
  public ListResponse(
      @JsonProperty("algorithms") Map> algorithms,
      @JsonProperty("templates") List templates) {
    this.algorithms = algorithms;
    this.templates = templates;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy