IOSupplier (Lucene 10.5.0 core API)
Description: declaration: package: org.apache.lucene.util, interface: IOSupplier

Package org.apache.lucene.util

# Interface IOSupplier<T>

Type Parameters:
  `T` - the suppliers result type.

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 IOSupplier<T>
This is a result supplier that is allowed to throw an IOException.

See Also:
  - `Supplier`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `get()`
  Gets the result.

- ## Method Details

  - ### get

    T get() throws IOException
    Gets the result.
    Returns:
      the result
    Throws:
      `IOException` - if producing the result throws an `IOException`