Class FunctionUtils

java.lang.Object
org.nuxeo.common.function.FunctionUtils

public class FunctionUtils extends Object
Helper class to handle java.util.function classes.
Since:
11.1
  • Method Details

    • sneakyThrow

      protected static <T extends Throwable, R> R sneakyThrow(Throwable t) throws T
      Method allowing to throw a checked exception as an unchecked one.
      Type Parameters:
      T - type of exception to throw
      R - type of returned object to hide
      Throws:
      T extends Throwable