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

org.molgenis.navigator.util.ResourceCollection Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
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