Class Function0.X<A>

java.lang.Object
org.opencastproject.util.data.Function0<A>
org.opencastproject.util.data.Function0.X<A>
Enclosing class:
Function0<A>

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

    • X

      public X()
  • Method Details

    • apply

      public final A apply()
      Description copied from class: Function0
      Apply function yielding a constant value. Don't be tempted to become impure!
      Specified by:
      apply in class Function0<A>
    • xapply

      public abstract A xapply() 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