Interface IndexedAcceptor<T>

Type Parameters:
T - type of element to accept
All Known Subinterfaces:
IndexedAggregator<E,​R>

public interface IndexedAcceptor<T>
Additionally to the element to accept, this class' accept(Object, long) method, uses the coherent index of the given element.
  • Method Summary

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

    • accept

      void accept​(T e, long index)
      Expects the element and its coherent index.
      Parameters:
      e - element which is expected at the given index
      index - on which the element is expected