Interface BufferView.Collector<ExceptionT extends java.lang.Exception>

  • Type Parameters:
    ExceptionT - Type of exception that this function can throw.
    Enclosing interface:
    BufferView
    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 static interface BufferView.Collector<ExceptionT extends java.lang.Exception>
    Defines a collector function that can be applied to a ByteBuffer.
    • Method Detail

      • accept

        void accept​(java.nio.ByteBuffer buffer)
             throws ExceptionT extends java.lang.Exception
        Processes a ByteBuffer.
        Parameters:
        buffer - The ByteBuffer.
        Throws:
        ExceptionT - (Optional) Any exception to throw.
        ExceptionT extends java.lang.Exception