org.molgenis.data.EntityCollection Maven / Gradle / Ivy
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();
}