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

org.molgenis.semanticsearch.explain.bean.ExplainedAttribute Maven / Gradle / Ivy

The newest version!
package org.molgenis.semanticsearch.explain.bean;

import com.google.auto.value.AutoValue;
import java.util.Set;
import org.molgenis.data.meta.model.Attribute;

@AutoValue
@SuppressWarnings("java:S1610") // Abstract classes without fields should be converted to interfaces
public abstract class ExplainedAttribute {
  public abstract Attribute getAttribute();

  public abstract Set getExplainedQueryStrings();

  public abstract boolean isHighQuality();

  public static ExplainedAttribute create(
      Attribute attribute, Set explainedQueryStrings, boolean isHighQuality) {
    return new AutoValue_ExplainedAttribute(attribute, explainedQueryStrings, isHighQuality);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy