Interface CallableRaisingIOE<R>

Type Parameters:
R - return type
All Known Implementing Classes:
LazyAtomicReference, LazyAutoCloseableReference
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 CallableRaisingIOE<R>
This is a callable which only raises an IOException. Its method unchecked() invokes the apply() method and wraps all IOEs in UncheckedIOException; call this if you need to pass this through java streaming APIs
  • Method Summary

    Modifier and Type
    Method
    Description
    Apply the operation.
    default R
    Apply unchecked.
  • Method Details

    • apply

      R apply() throws IOException
      Apply the operation.
      Returns:
      result
      Throws:
      IOException - Any IO failure
    • unchecked

      default R unchecked()
      Apply unchecked.
      Returns:
      the evaluated call
      Throws:
      UncheckedIOException - IOE raised.