Class FunctionUtils

java.lang.Object
org.aksw.commons.util.function.FunctionUtils

public class FunctionUtils extends Object
  • Constructor Details

    • FunctionUtils

      public FunctionUtils()
  • Method Details

    • nullToIdentity

      public static <O, I extends O> Function<I,O> nullToIdentity(Function<I,O> fn)
      Wrap a function such that whenever it would return null it would return the argument instead