Interface IOObjDoubleConsumer<T>

  • Type Parameters:
    T - the type of the object argument to the operation
    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 IOObjDoubleConsumer<T>
    Represents an operation that accepts an object-valued and a double-valued argument, and returns no result. This is the (reference, double) specialization of IOBiConsumer. Unlike most other functional interfaces, ObjDoubleConsumer is expected to operate via side-effects.

    This interface is similar to ObjDoubleConsumer except that it is allowed to throw an IOException.

    Author:
    Magno N A Cruz
    See Also:
    IOBiConsumer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void accept​(T t, double value)
      This method is the same as ObjDoubleConsumer.accept(Object, double), but with a support for IOException.
    • Method Detail

      • accept

        void accept​(T t,
                    double value)
             throws java.io.IOException

        This method is the same as ObjDoubleConsumer.accept(Object, double), but with a support for IOException.

        Parameters:
        t - The first input argument.
        value - The second input argument.
        Throws:
        java.io.IOException - if there is an I/O error performing the operation.