Interface IOIntSupplier

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

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getAsInt()
      This method is the same as IntSupplier.getAsInt(), but with a support for IOException.
    • Method Detail

      • getAsInt

        int getAsInt()
              throws java.io.IOException

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

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