Interface ReadableComponentProcessor<E extends Exception>
- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ReadableComponentProcessor<E extends Exception>A processor of readable components.
boolean process(int index, ReadableComponent component) throws E extends ExceptionProcess the given component at the given index in the
The component object itself is only valid during this call, but the
byte buffers, arrays, and native address pointers obtained from it, will be valid until any operation is performed on the buffer, which changes the internal memory.
index- The current index of the given buffer component, based on the initial index passed to the
component- The current buffer component being processed.
trueif the iteration should continue and more components should be processed, otherwise
falseto stop the iteration early.
E extends Exception