Interface IndexedAggregator<E,​R>

All Superinterfaces:
IndexedAcceptor<E>

public interface IndexedAggregator<E,​R>
extends IndexedAcceptor<E>
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static interface  IndexedAggregator.Creator<E,​R>  
  • Method Summary

    Modifier and Type Method Description
    void accept​(E e, long index)
    Expects the element and its coherent index.
    R yield()  
  • Method Details

    • accept

      void accept​(E e, long index)
      Description copied from interface: IndexedAcceptor
      Expects the element and its coherent index.
      Specified by:
      accept in interface IndexedAcceptor<E>
      Parameters:
      e - element which is expected at the given index
      index - on which the element is expected
    • yield

      R yield()