Class Function.X<A,B>

java.lang.Object
org.opencastproject.util.data.Function<A,B>
org.opencastproject.util.data.Function.X<A,B>
Enclosing class:
Function<A,B>

public abstract static class Function.X<A,B> extends Function<A,B>
Version of Function that allows for throwing a checked exception.
  • Constructor Details

    • X

      public X()
  • Method Details

    • apply

      public final B apply(A a)
      Description copied from class: Function
      Apply function to a.
      Specified by:
      apply in class Function<A,B>
    • xapply

      protected abstract B xapply(A a) throws Exception
      Apply function to a. Any thrown exception gets "chucked" so that you may catch them as is. See Functions.chuck(Throwable) for details.
      Throws:
      Exception