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

org.molgenis.data.index.meta.IndexActionGroup Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.data.index.meta;

import static org.molgenis.data.index.meta.IndexActionGroupMetadata.COUNT;
import static org.molgenis.data.index.meta.IndexActionMetadata.ID;

import org.molgenis.data.Entity;
import org.molgenis.data.meta.model.EntityType;
import org.molgenis.data.support.StaticEntity;

@SuppressWarnings("unused")
public class IndexActionGroup extends StaticEntity {
  public IndexActionGroup(Entity entity) {
    super(entity);
  }

  public IndexActionGroup(EntityType entityType) {
    super(entityType);
  }

  public IndexActionGroup(String id, EntityType entityType) {
    super(entityType);
    set(ID, id);
  }

  public String getId() {
    return getString(ID);
  }

  public int getCount() {
    Integer count = getInt(COUNT);
    return count != null ? count : 0;
  }

  public IndexActionGroup setCount(int count) {
    set(COUNT, count);
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy