package net.jimblackler.Utils; /** * Defines objects that handle results from a Collector<>, with a function called immediately as * each value is gathered. */ public interface ResultHandler { /** * This method is called by collectors whenever a result is collected. * * @param value The collected result * @throws CollectionAbortedException The client code requests that the collection is aborted */ void handleResult(T value) throws CollectionAbortedException; }