package org.gcube.data.streams; /** * A callback for a {@link StreamConsumer}. * * @author Fabio Simeoni * * @param the type of stream elements * */ public interface Callback { /** The ongoing iteration. */ static final Iteration iteration = new Iteration(); /** * Implement to consume an element of the stream. * @param element the element */ void consume(T element); }