org.molgenis.navigator.util.ResourceCollection Maven / Gradle / Ivy
package org.molgenis.navigator.util;
import com.google.auto.value.AutoValue;
import java.util.List;
import javax.validation.constraints.NotNull;
import org.molgenis.data.meta.model.EntityType;
import org.molgenis.data.meta.model.Package;
import org.molgenis.util.AutoGson;
/** Collection of typed resources. */
@AutoValue
@AutoGson(autoValueClass = AutoValue_ResourceCollection.class)
@SuppressWarnings(
"squid:S1610") // Abstract classes without fields should be converted to interfaces
public abstract class ResourceCollection {
@NotNull
public abstract List getPackages();
@NotNull
public abstract List getEntityTypes();
public static ResourceCollection of(List packages, List entityTypes) {
return new AutoValue_ResourceCollection(packages, entityTypes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy