Interface WadUtils.WadFunction<R>

Type Parameters:
R - the return type.
Enclosing class:
WadUtils
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 static interface WadUtils.WadFunction<R>
A functional interface that describes a function that takes a Wad and returns data, without handling any exceptions thrown by it.
Since:
2.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Wad wad)
    Calls this function with a Wad file.
  • Method Details

    • apply

      R apply(Wad wad) throws IOException
      Calls this function with a Wad file.
      Parameters:
      wad - the provided Wad to operate on.
      Returns:
      the data returned by the function.
      Throws:
      IOException - if any I/O exception occurs.