org.molgenis.oneclickimporter.model.DataCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-one-click-importer Show documentation
Show all versions of molgenis-one-click-importer Show documentation
Plugin module for importing data with automatic metadata determination (not part of
the importer
framework).
package org.molgenis.oneclickimporter.model;
import com.google.auto.value.AutoValue;
import java.util.List;
import org.molgenis.util.AutoGson;
@AutoValue
@AutoGson(autoValueClass = AutoValue_DataCollection.class)
@SuppressWarnings(
"squid:S1610") // Abstract classes without fields should be converted to interfaces
public abstract class DataCollection {
public abstract String getName();
public abstract List getColumns();
public static DataCollection create(String name, List columns) {
return new AutoValue_DataCollection(name, columns);
}
}