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

org.molgenis.data.EntityCollection Maven / Gradle / Ivy

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

import java.util.stream.Stream;
import java.util.stream.StreamSupport;

public interface EntityCollection extends Iterable {
  /** Streams the {@link Entity}s */
  default Stream stream() {
    return StreamSupport.stream(spliterator(), false);
  }

  Iterable getAttributeNames();

  /**
   * Returns whether this entity collection is lazy, i.e. all entities are references to entities (=
   * lazy entities)
   *
   * @return whether this entity collection is lazy
   */
  boolean isLazy();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy