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
    Like IntSupplier but throws IOException.
    Since:
    2.14.0
    • Method Detail

      • asIntSupplier

        default java.util.function.IntSupplier asIntSupplier()
        Creates a Supplier for this instance that throws UncheckedIOException instead of IOException.
        Returns:
        an UncheckedIOException Supplier.
      • getAsInt

        int getAsInt()
              throws java.io.IOException
        Gets a result.
        Returns:
        a result
        Throws:
        java.io.IOException - if an I/O error occurs.