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

org.molgenis.api.data.v3.Entities Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.api.data.v3;

import com.google.auto.value.AutoValue;
import java.util.List;
import org.molgenis.data.Entity;

@AutoValue
abstract class Entities {
  abstract List getEntities();

  abstract int getTotal();

  public static Entities create(List newEntities, int newTotal) {
    return builder().setEntities(newEntities).setTotal(newTotal).build();
  }

  public static Builder builder() {
    return new AutoValue_Entities.Builder();
  }

  @SuppressWarnings(
      "squid:S1610") // Abstract classes without fields should be converted to interfaces
  @AutoValue.Builder
  public abstract static class Builder {

    public abstract Builder setEntities(List newEntities);

    public abstract Builder setTotal(int newTotal);

    public abstract Entities build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy