Interface IOLongSupplier

  • 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 IOLongSupplier
    Represents a supplier of long-valued results. This is the long-producing primitive specialization of IOSupplier.

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

    Author:
    Magno N A Cruz
    See Also:
    IOSupplier
    • Method Detail

      • getAsLong

        long getAsLong()
                throws java.io.IOException

        This method is the same as LongSupplier.getAsLong(), but with a support for IOException.

        Returns:
        A result.
        Throws:
        java.io.IOException - if there is an I/O error performing the operation.