Class AbstractBatchingVisitable<T>

    • Constructor Detail

      • AbstractBatchingVisitable

        public AbstractBatchingVisitable()
    • Method Detail

      • batchAccept

        public final <K extends Exception> boolean batchAccept​(int batchSize,
                                                               AbortingVisitor<? super List<T>,​K> v)
                                                        throws K extends Exception
        Description copied from interface: BatchingVisitable
        This method should be used to visit elements in batches until the visitor returns false or there are no batches left to visit.
        Specified by:
        batchAccept in interface BatchingVisitable<T>
        Parameters:
        batchSize - Each list passed to the visitor will be of batchSize except for the last one which could be smaller, but will not be empty;
        Returns:
        true if the visitor always returned true or was never called. false if the visitor ever returned false.
        Throws:
        K extends Exception